-
-
Save adam12/46a45a7dc0c9d59e50c7 to your computer and use it in GitHub Desktop.
tilt-forme-test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "bundler/setup" | |
require "tilt" | |
require "forme/erb" | |
template = "form.erb" | |
def env; nil; end | |
include Forme::ERB::Helper | |
p Tilt.new(template).render(self) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% form(:action => '/baz') do |f| %> | |
<%= f.input(:text, :name => 'bar') %> | |
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "https://rubygems.org" | |
gem "tilt" | |
gem "forme" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment