0.2.0 • Published 11 years ago

node-stamp v0.2.0

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

stamp

Generate scaffolding from mustache templates and YAML files using Node.js

Getting Started

Install the module with: npm install stamp

In Javascript:

var stamp = require('stamp');
var data = {
	options: {
		baseTemplatePath: './templates',
		baseOutPath: './out'
	},
	dirs: [
		{
			name: 'example1',
			files: [
				{
					template: 'example.js',
					data: { name: 'Trevor' }
				},
				{
					template: 'example.js',
					name: 'exampleAlt.js',
					data: { name: 'Stamp' }
				}
			],
			children: [
				{
					name: 'nested',
					files: [
						{
							template: 'example.js',
							data: {name: 'Nested'}
						}
					]
				}
			]
		}
	]
}
stamp(data);

From the Command Line:

node stamp.js path/to/yaml/config.yml

Where config.yml presents the same structure.

Contributing

TODO

  • could use some unit tests

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

0.1.0: 3/20/13 - initial release.

License

Copyright (c) 2013 Trevor Borg
Licensed under the MIT license.

0.2.0

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago