34 lines
1.0 KiB
HTML
34 lines
1.0 KiB
HTML
Available variables:
|
|
<br>
|
|
<ul>
|
|
<li>
|
|
<b>documentTitle</b>: document title</li>
|
|
<li>
|
|
<b>documentMarkdown</b>: document in Markdown format</li>
|
|
<li>
|
|
<b>strippedDocumentMarkdown</b>: document without front matter</li>
|
|
<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>
|
|
</ul>
|
|
<b>Examples:</b>
|
|
<br /><title><%= documentTitle %></title>
|
|
<br /><div><%- documentHTML %></div>
|
|
<br /><%
|
|
<br />if(publishAttributes.provider.providerId == "github") print(documentMarkdown);
|
|
<br
|
|
/>%>
|
|
<br />
|
|
<br />
|
|
<a target="_blank" href="http://underscorejs.org/#template">More
|
|
info</a>
|
|
<br />
|
|
<br />
|
|
<b class="text-danger">
|
|
<i class="icon-attention"></i>Careful! Template is subject to malicious code. Don't copy/paste untrusted
|
|
content.</b>
|