Skip to content

Olivine-Labs/lusty-mustache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lusty-mustache

mustache rendering for lusty

local config = {
  render = {
    { ['lusty-mustache.render.mustache'] = {
        -- set defaults here
        template {
          name = 'templates/layout',

          partials = {
            content = 'templates/home'
          }
        }
    } }
  }
}

In your request handler:

context.template = {
  name = 'template/somethingelse',

  partials = {
    content = 'templates/404'
  },

  -- don't forget to set your context.template.type to mustache or this won't
  -- fire!

  type = 'mustache'
}