Skip to content

Repository files navigation

fengine

A development tool for f2e

NPM VersionDownload StatusNode VersionDependencies

Getting started

Install

$ npm install -g fengine

Introduction

if you have installed fengine, you can run fengine by command:

$ fengine

and use:

$ fengine -h

for help.

you can config server by fengine.yml under server root:

hostname: # default: 0.0.0.0 and ::127.0.0.1port: # default: null 80base: # default: process.cwd/htmllayout: # default: null/layout/layout.htmldata: # default: {server, dirname, filename, extname}version:
0.0.1watch: # default: ['.htm', '.html'], .htm and .html always be watched
- .xml
- .tpltags: # default {data: ['{{', '}}'], directive: ['<!--', '-->']}data:
- {{
- }}directive:
- <!--
- -->

hostname: server hostname, don't set if not necessary, see node http module docs. {String}

port: server port. {Number}

base: the base dir of where the file transform start. {String}

layout: default layout file. {String}

data: the data of template. {Object}

watch: the extname of file want to be transform. {Array}

tags: the tags of file template engine. {Object}

Documentation

fengine wiki

License

MIT

About

A development tool for f2e

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages