sg-templates

1.4.4 • Public • Published

sg-templates

Build Status npm Version JS Standard

Templates for SUGOS

Installation

$ npm install sg-templates --save

Usage

#!/usr/bin/env node
 
/**
 * Example usage
 */
 
'use strict'
 
const pkg = require('../package.json')
const { moduleIndex } = require('sg-templates')
 
// Define coz bud
module.exports = {
  force: true,
  mode: '444',
  tmpl: moduleIndex,
  data: {
    name: 'MyModule',
    pkg
  }
}
 
if (!module.parent) {
  require('coz').render(__filename)
}
 

Templates

Name Path
moduleApi assets/module-api.hbs
moduleIndex assets/module-index.hbs
reactIndex assets/react-index.hbs
reactTest assets/react-test.hbs

License

This software is released under the Apache-2.0 License.

Links

Readme

Keywords

Package Sidebar

Install

npm i sg-templates

Weekly Downloads

14

Version

1.4.4

License

Apache-2.0

Last publish

Collaborators

  • realglobe