Sha256: 8c5a1b29105c2ecac7b5fce6f92871e3923f3b484004cd7c9523fb094c362543

Contents?: true

Size: 851 Bytes

Versions: 3

Compression:

Stored size: 851 Bytes

Contents

require 'bundler/setup'

require 'simple_view'
require 'simple_view/builder_view'

include SimpleView
include SimpleView::Renderable

Base.directory_views = File.join(File.dirname(__FILE__), 'views')
Base.directory_helpers = File.join(File.dirname(__FILE__), 'views')

# render 'test-erb', :locals => {:who => 'You'}, :target => $stdout
puts "ERB"
render_erb 'test', :locals => {:who => 'You'}, :target => $stdout
puts "\nBUILDER"
render_builder 'test', :locals => {:who => 'You'}, :target => $stdout
puts "\nIO"
render_io 'test', :locals => {:who => 'You'}, :target => $stdout

puts "\nHAML"
require 'simple_view/haml_view'
render_haml 'test', :locals => {:who => 'You'}, :target => $stdout

require 'simple_view/poi_view'
render_poi 'test', :model => "#{Base.directory_views}/test-model.xlsx", :target => 'c:/aag/test.xlsx'

Version data entries

3 entries across 2 versions & 1 rubygems

Version Path
simple_view-0.0.2 test/test_view.rb
simple_view-0.0.1 test/CVS/RevisionCache/test_view.rb#1.1.1.1
simple_view-0.0.1 test/test_view.rb