Examples of macro "n:class" usage 28/10/2014

use , as a class separator <header n:class="position-default, homepage, $query ? position-top"> <h1>Nette Code Snippets</h1> </header> {* is same as: *} <header class="position-default homepage{if $query!=''} position-top{/if}"> <h1>Nette Code Snippets</h1> </header>

use , as a class separator

<header n:class="position-default, homepage, $query ? position-top">
    <h1>Nette Code Snippets</h1>
</header>

{* is same as: *}

<header class="position-default homepage{if $query!=''} position-top{/if}">
    <h1>Nette Code Snippets</h1>
</header>