zeta-site-gen
v0.0.6
Published
Statics site/pages generator based on XML, and mustache
Downloads
4
Readme
zeta-site-gen
Install
npm install zeta-site-gen
Structure
project
- templates
- tpl.html
- content
- index.xml
- build
- styles.css
- app.js
- templates
Use
<!-- templates/tpl.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Page</title>
</head>
<body>
<h1>{{customvalue.0}}</h1>
</body>
</html>
<!-- content/index.xml -->
<page>
<file>index.html</file>
<template>tpl</template>
<content>
<customvalue>Titulo del xml</customvalue>
</content>
</page>
// app.js
var zsg = require('zeta-site-gen');
zsg.init();
This will be watch changes in content and templates directories and recompile to build directory, based on file and template nodes.