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.9 templates/ruby/web-root/handler.rb
faastruby-0.5.8 templates/ruby/web-root/handler.rb
faastruby-0.5.7 templates/ruby/web-root/handler.rb
faastruby-0.5.6 templates/ruby/web-root/handler.rb
faastruby-0.5.5 templates/ruby/web-root/handler.rb
faastruby-0.5.4 templates/ruby/web-root/handler.rb
faastruby-0.5.3 templates/ruby/web-root/handler.rb
faastruby-0.5.2 templates/ruby/web-root/handler.rb
faastruby-0.5.0 templates/ruby/web-root/handler.rb