Sha256: afd4e5ee68c46bb75e931478ee2fb0a1d15ec262732b58504e87b4554a62628d

Contents?: true

Size: 250 Bytes

Versions: 29

Compression:

Stored size: 250 Bytes

Contents

require './template'

def handler event
  greeting = "Welcome to FaaStRuby Local!"
  render html: template('index.html.erb', variables: {greeting: greeting})
end

def template(file, variables: {})
  Template.new(variables: variables).render(file)
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
faastruby-0.5.29 templates/ruby/web-root/handler.rb
faastruby-0.5.28 templates/ruby/web-root/handler.rb
faastruby-0.5.27 templates/ruby/web-root/handler.rb
faastruby-0.5.26 templates/ruby/web-root/handler.rb
faastruby-0.5.25 templates/ruby/web-root/handler.rb
faastruby-0.5.24 templates/ruby/web-root/handler.rb
faastruby-0.5.23 templates/ruby/web-root/handler.rb
faastruby-0.5.22 templates/ruby/web-root/handler.rb
faastruby-0.5.21 templates/ruby/web-root/handler.rb
faastruby-0.5.20 templates/ruby/web-root/handler.rb
faastruby-0.5.19 templates/ruby/web-root/handler.rb
faastruby-0.5.18 templates/ruby/web-root/handler.rb
faastruby-0.5.17 templates/ruby/web-root/handler.rb
faastruby-0.5.16 templates/ruby/web-root/handler.rb
faastruby-0.5.15 templates/ruby/web-root/handler.rb
faastruby-0.5.14 templates/ruby/web-root/handler.rb
faastruby-0.5.13 templates/ruby/web-root/handler.rb
faastruby-0.5.12 templates/ruby/web-root/handler.rb
faastruby-0.5.11 templates/ruby/web-root/handler.rb
faastruby-0.5.10 templates/ruby/web-root/handler.rb