2013-06-10 21:22:32 +00:00
|
|
|
Available variables:
|
|
|
|
<br>
|
|
|
|
<ul>
|
|
|
|
<li><b>documentTitle</b>: document title</li>
|
|
|
|
<li><b>documentMarkdown</b>: document in Markdown format</li>
|
|
|
|
<li><b>documentHTML</b>: document in HTML format</li>
|
|
|
|
<li><b>publishAttributes</b>: attributes of the publish location
|
2013-06-22 23:48:57 +00:00
|
|
|
(undefined if not publishing)</li>
|
2013-06-10 21:22:32 +00:00
|
|
|
</ul>
|
|
|
|
Examples:
|
|
|
|
<br />
|
|
|
|
<title><%= documentTitle %></title>
|
|
|
|
<br />
|
|
|
|
<div><%- documentHTML %></div>
|
|
|
|
<br />
|
2013-06-22 23:48:57 +00:00
|
|
|
<%<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
|
|
|
|
info</a>
|