Skip to content

Instantly share code, notes, and snippets.

@Dykam
Created December 20, 2010 22:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dykam/749144 to your computer and use it in GitHub Desktop.
Save Dykam/749144 to your computer and use it in GitHub Desktop.
Html templates, how it is done currently and what I dislike about that
<h1>{title}</h1>
<p>{item}</p>
<h1>{title}</h1>
{for:items as item}
<p>{item}</p>
{/for}
{if:author}
<p>{author}</p>
{/if}
<!-- Custom characters -->
<h1>{title}</h1>
<!-- Misuse of html, also because it clutters -->
<h1><span class="value title"></h1>
<!-- Illegal html -->
<h1><value name="title"></h1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment