Created
July 25, 2011 18:37
-
-
Save Mikulas/1104823 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function templatePrepareFilters($template) | |
{ | |
$template->registerFilter(new Nette\Templating\Filters\Naira); | |
$template->registerFilter(new Nette\Latte\Engine); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The default tag is div. | |
<.container></> | |
<div class="container"></div> | |
<article.container></> | |
<article class="container"></article> | |
Multiple IDs are resolved as follows: | |
<#used#ambiguous></> | |
<div id="used"></div> | |
<#used#ambiguous id="whatever"></> | |
<div id="used"></div> | |
Mixing standard html and Naira is allowed | |
<.foo class="bar"></> | |
<div class="foo bar"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php naira.php --watch src/input.html --output templates/index.html | |
php naira.php --watch src/ --output templates/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment