2013-06-10 21:22:32 +00:00
|
|
|
Available variables:
|
|
|
|
<br>
|
|
|
|
<ul>
|
2013-10-06 14:34:40 +00:00
|
|
|
<li>
|
|
|
|
<b>documentTitle</b>: document title</li>
|
|
|
|
<li>
|
|
|
|
<b>documentMarkdown</b>: document in Markdown format</li>
|
2013-10-22 22:15:35 +00:00
|
|
|
<li>
|
2013-10-27 20:27:39 +00:00
|
|
|
<b>strippedDocumentMarkdown</b>: document without front matter</li>
|
2013-10-06 14:34:40 +00:00
|
|
|
<li>
|
|
|
|
<b>documentHTML</b>: document in HTML format</li>
|
|
|
|
<li>
|
|
|
|
<b>frontMatter</b>: YAML front matter object (undefined if not present)</li>
|
|
|
|
<li>
|
|
|
|
<b>publishAttributes</b>: attributes of the publish location (undefined if
|
|
|
|
not publishing)</li>
|
2013-06-10 21:22:32 +00:00
|
|
|
</ul>
|
2013-07-07 20:07:11 +00:00
|
|
|
<b>Examples:</b>
|
2013-10-06 14:34:40 +00:00
|
|
|
<br /><title><%= documentTitle %></title>
|
|
|
|
<br /><div><%- documentHTML %></div>
|
|
|
|
<br /><%
|
|
|
|
<br />if(publishAttributes.provider.providerId == "github") print(documentMarkdown);
|
|
|
|
<br
|
|
|
|
/>%>
|
2013-06-10 21:22:32 +00:00
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
<a target="_blank" href="http://underscorejs.org/#template">More
|
2013-09-03 10:37:59 +00:00
|
|
|
info</a>
|
|
|
|
<br />
|
|
|
|
<br />
|
2013-10-06 14:34:40 +00:00
|
|
|
<b class="text-danger">
|
|
|
|
<i class="icon-attention"></i>Careful! Template is subject to malicious code. Don't copy/paste untrusted
|
2014-04-21 01:12:57 +00:00
|
|
|
content.</b>
|