0.0.6 • Published 10 years ago

zeta-site-gen v0.0.6

Weekly downloads
4
License
ISC
Repository
github
Last release
10 years ago

zeta-site-gen

Install

npm install zeta-site-gen

Structure

  • project
    • templates
      • tpl.html
    • content
      • index.xml
    • build
      • styles.css
    • app.js

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.

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago