Skip to content

Instantly share code, notes, and snippets.

@daytonn
Created November 25, 2012 17:54
Show Gist options
  • Select an option

  • Save daytonn/4144556 to your computer and use it in GitHub Desktop.

Select an option

Save daytonn/4144556 to your computer and use it in GitHub Desktop.
Automatic ejs template compilation
<%= "#{Rails.application.class.parent_name}" %>.Templates = {
<%= templates.map { |n, t| "'#{n}': #{t}" }.join(",\n ") %>
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment