Skip to content

Commit

Permalink
explain available tag and prepare version 0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Velliz committed Dec 11, 2017
1 parent 222eff7 commit dee8def
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,23 @@ composer require velliz/pte

Or you can download it directly, run composer install after it.

### Tags Available

| Tags | Description |
| --- | --- |
| `{!x}` | Value or Part Objects tags |
| `<!--{!x}-->` | **open** loop tags |
| `<!--{/x}-->` | **close** loop tags |
| `{!fn()}` | **function** tags with no parameters |
| `{!fn(x)}` | **function** tags with one parameters |
| `{!fn(x,y,z)}` | **function** tags with multiple parameters |
| `{CONTENT}` | **CONTENT** tags only works on master file |
| `{!css(<link href="" rel="stylesheet" type="text/css" />)}` | **CSS** tags |
| `{!js(<script src="" type="text/javascript"></script>)}` | **JavaScript** tags |
| `{!part(css)}` | move **CSS** tags location to this tag |
| `{!part(js)}` | move **JavaScript** tags location to this tag |
| `{x.html}` | segment file tags |

### Usage sample

Instance the object:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "puko template engine",
"type": "library",
"license": "MIT",
"version": "0.1.1",
"version": "0.1.2",
"authors": [
{
"name": "didit velliz",
Expand Down

0 comments on commit dee8def

Please sign in to comment.