I've been searching for a template engine to allow users to create lessons and exercises online easily.
Seems like Liquid is the most popular for use in Rails. Can Liquid users easily create rails forms?
Normally I create forms in ERB with:
<%= form_for(@lesson) do |f| %>
<% if @lesson.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@lesson.errors.count, "error") %> prohibited this lesson from being saved:</h2>
<ul>
<% @lesson.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %>
<div>lots of fields</div>
<% end %>
Rails will automatically insert the CSRF protection stuff among other things. Can I do the same with Liquid? Can I create filters, tags and/or blocks in Liquid to emulate Rails form tags?