Arne Brasseur is proud to present you this little tip:

Element content

The Nitro concept of elements is terribly flexible. Whatever you put inside the elements tag is available through the content method. You could for instance parse this as YAML and take it as configuration for how the element should render.

    variant: big
    background: #3f7
    no-footer: true

class SomeElement
    def render
      opt = YAML::load(content)
      if opt['variant'] == 'big'