Created
March 20, 2014 12:16
-
-
Save jodosha/9662490 to your computer and use it in GitHub Desktop.
Fixed version of https://gist.github.com/jodosha/9662268
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' | |
puts Tilt.new('template.erb').render |
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', github: 'jodosha/tilt', branch: 'prefer-erb-over-erubis' |
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
% ruby example.rb | |
<h1>Hello, World!</h1> |
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
<h1>Hello, World!</h1> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment