Specifying a layout and a template in a standalone (not rails) ruby app, using slim or haml
I'm trying to do something like this in a standalone (not rails) app: layout.slim: h1 Hello .content = yield show.slim: = object.name = object.description I can't figure out how to specify a layout and a template. Is this possible with slim (or haml)? Thanks. The layout.slim file looks like: h1 Hello .content == yield The contents.slim file looks like: = name This can be shortened, but I separated to individual steps for explanation purposes. require 'slim' # Simple class to represent an environment class Env attr_accessor :name end # Intialize it env = Env.new # Set the variable we reference