Skip to content

Commit

Permalink
* 4.2 see changelog.
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecc committed Dec 15, 2021
1 parent d3e1efa commit 94b5e3c
Show file tree
Hide file tree
Showing 3 changed files with 238 additions and 42 deletions.
47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,53 @@ The old method **select** only allows a limited number of arguments. And the ord

The new method **select** allows to add different types of arguments

## Command Line (CLI)

![docs/cli.png](docs/cli.png)

BladeOne (since the version v4.2) allows to run some operations via command line (CLI)

How to run it?

* Go to your home path and call the PHP script as follow:

```shell
php vendor/lib/eftec/bladeone/lib/BladeOne.php
```

Or change you folder according to your installation.

And you can set the syntax as follow:

* **-templatepath** <templatepath> (optional) the template-path.
* Example: '/folder/views' or 'views' (relative)
* **-compilepath** <compilepath> (optional) the compile-path.
* Example: '/folder/compiles or 'compiles' (relative)
* **-clearcompile** It deletes the content of the compile path
* **-check** It checks the library

Clear the compile folder

```shell
php vendor/lib/eftec/bladeone/lib/BladeOne.php -clearcompile
```

Check the folders, if the folder exists, if it has the right permissions, etc.

```shell
php vendor/lib/eftec/bladeone/lib/BladeOne.php -check
```

Example to clear the compile folder using a custom compile path

```shell
php vendor/lib/eftec/bladeone/lib/BladeOne.php -clearcompile -compilepath mycompile # relative path to the current location
php vendor/lib/eftec/bladeone/lib/BladeOne.php -clearcompile -compilepath /var/mycompile # absolute path (Linux/MacOS)
php vendor/lib/eftec/bladeone/lib/BladeOne.php -clearcompile -compilepath c:\var\mycompile # absolute path (Windows)
```



## BladeOneHtml

It is a new extension to BladeOne. It allows to create HTML components easily and with near-to-native performance.
Expand Down
Binary file added docs/cli.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 94b5e3c

Please sign in to comment.