Skip to content

Commit

Permalink
introduce new dynamic language renderer support
Browse files Browse the repository at this point in the history
  • Loading branch information
Velliz committed Mar 7, 2020
1 parent a81ff4f commit e42f1e2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ Try it with composer command:
composer require velliz/pte
```

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

* ext-json
* ext-xmlrpc

### Tags Available

Expand Down Expand Up @@ -69,7 +72,7 @@ class BaseUrl implements \pte\CustomRender
var $tempJs = '';
var $tempCss = '';

public function Parse()
public function Parse($data = null, $template = '', $templateBinary = false)
{
if ($this->fn === 'url') {
return 'http://localhost/' . $this->param;
Expand Down Expand Up @@ -170,6 +173,10 @@ The output method is the part when the lexer and parser process the Html input.
You also have a choice for choosing *Pte::VIEW_JSON* for output.
Happy coding :)

---

# Examples

master.html

```html
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.6",
"version": "0.2.0",
"authors": [
{
"name": "didit velliz",
Expand Down

0 comments on commit e42f1e2

Please sign in to comment.