New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helper Examples #5

Open
RobLoach opened this Issue Dec 3, 2013 · 0 comments

Comments

Projects
None yet
1 participant
@RobLoach
Owner

RobLoach commented Dec 3, 2013

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 %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment