Adam Moore
Web Developer
Takes small, template chunks and groups them into a full page.
This gives you ease of development and a fast and secure website.
Assemble allows use of either Lo-Dash or Handlebars templates, depending on where the templates are used.
<!DOCTYPE html> <html lang = "en"> <head> <meta charset ="UTF-8"> <title> {{title }} </title> </head> <body> {{> body }} </body> </html>
---
title: Just testing some stuff on this page, it should not be published
area: docs
section: templates
---
## Rendering Pages
### Excluding pages
** From the YAML Front Matter of a page**
You can write in markdown or just HTML
---
{{#logo}}
logo:
URL: {{URL}}
classes:
{{#classes}}
- {{.}}
{{/classes}}
width: {{width}}
height: {{height}}
title: {{title}}
{{/logo}}
---
assemble: {
options: {
data: 'path/to/config.json',
assets: 'path/to/assets',
},
project: {
options: {
layout: "path/to/default-layout.hbs",
partials: "path/to/partials/**/*.hbs"
},
files: {
'dest': ["path/to/pages/**/*.hbs" ]
}
}
},
By Adam Moore