dotfiles/vim/vim.symlink/bundle/vim-mustache-handlebars/example.mustache

66 lines
1.4 KiB
Text

<!DOCTYPE html>
<html>
<head>
<title>
{{title}}
</title>
{{!}}
</head>
<body>
<div id="main">
<h1>Mustache Showdown</h1>
Basic mustache {{hello}}
{{ hello}}, {{hello }} and {{ hello }} are OK
<de>{{d d d}}
{{Everything will be hilighted here}}
Mustaches hilighted in
<span class="color:{{awesome_color}};font-size:1.2em">attribute value</span>
{{#repo}}
This is an mustache [enumerable] section
<li>{{ name }}</li>
{{/repo}}
Inverted sections are supported too
{{^repo}}
No repos :(
{{/repo}}
You can {{{yield}}} here
{{! <> this is a comment TODO:}}
Another {{!-- comment --}}, this one is a block comment.
{{!-- TODO: some remark
<div>
Multililine {{comments}} with
{{variables}}
</div> --}}
This is a partial {{> partial1 }}
Yet another partial {{< partial2 }}, for ctemplate
{{=<% %>=}}Sorry, cusomized delimiter not handled yet<%={{}}=%>
{{#if some_helper}}
And here is an example of handlebars if...
{{else}}
... with optional else added. Try matchit `%` command over if/else/if.
{{/if}}
Thanks goes to {{@defunkt}}
Feedback/blames go to {{@juvenn}}
{{Frustrations}} go to /dev/null
Multililine {{comments}} with
{{variables}}
</div>
</body>
</html>