Jump to content

Module: Pug for the TemplateEngineFactory


dreerr
 Share

Recommended Posts

TemplateEnginePug (formally TemplateEngineJade)

 

This module adds Pug templates to the TemplateEngineFactory. It uses https://github.com/pug-php/pug to render templates.

doctype html
html(lang='en')
  head
    meta(http-equiv='content-type', content='text/html; charset=utf-8')
    title= $page->title
    link(rel='stylesheet', type='text/css', href=$config->urls->templates . 'styles/main.css')
  body
    include header.pug
    h1= $page->title
    if $page->editable()
      p: a(href=$page->editURL) Edit

Project on GitHub: github.com/dreerr/TemplateEnginePug

Project in modules directory: modules.processwire.com/modules/template-engine-pug/

 

For common problems/features/questions about the Factory, use the TemplateEngineFactory thread.

 

  • Like 8
Link to comment
Share on other sites

  • 3 months later...
  • 4 months later...
  • 3 months later...
  • dreerr changed the title to Module: Pug for the TemplateEngineFactory

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...