RobLoach / generator-docpad

:pencil2: Yeoman generator for DocPad
http://npmjs.org/package/generator-docpad
Other
21 stars 4 forks source link

Helper Examples #5

Open RobLoach opened 10 years ago

RobLoach commented 10 years ago

Something like this in eco.html.eco to provide some examples of how to use the Helper plugins:

<h2>Helper Examples</h3>

<% if @options.cachr: %>
  <h3>Cachr</h3>
  <img src="<%=@cachr('http://d.pr/i/cfmt+')%>"/>
<% end %>

<% if @options.moment: %>
  <h3>Moment</h3>
  <p><%= @moment('2013-10-13').format('MMMM Do YYYY') %></p>
<% end %>