Skip to content

Instantly share code, notes, and snippets.

@did
Created October 25, 2013 12:53
Show Gist options
  • Save did/7154216 to your computer and use it in GitHub Desktop.
Save did/7154216 to your computer and use it in GitHub Desktop.
Slim / Liquid
require 'slim'
template = %{
doctype html
head
body
{% for product in products %}
{{ product.name }}
{% endfor %}
}
template = Slim::Template.new { template } # <- fails
template.render
@momolog
Copy link

momolog commented Oct 13, 2015

Does the equivalent work with HAML?
How would this example look using HAML?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment