Stackedit/res/html/settingsTemplateTooltip.html

26 lines
813 B
HTML
Raw Normal View History

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>
2013-07-07 20:07:11 +00:00
<b>Examples:</b>
2013-06-10 21:22:32 +00:00
<br />
&lt;title&gt;&lt;%= documentTitle %&gt;&lt;&#x2F;title&gt;
<br />
&lt;div&gt;&lt;%- documentHTML %&gt;&lt;&#x2F;div&gt;
<br />
2013-06-22 23:48:57 +00:00
&lt;%<br />
if(publishAttributes.provider.providerId == &quot;github&quot;)
print(documentMarkdown);<br />
%&gt;
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 />
<b class="text-danger"><i class="icon-attention"></i> Careful! Template is subject to malicious code. Don't copy/paste untrusted content.</b>