-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from jstransformers/boilerplate
Boilerplate
- Loading branch information
Showing
12 changed files
with
103 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,25 @@ | ||
lib-cov | ||
*.seed | ||
# Logs | ||
logs | ||
*.log | ||
*.csv | ||
*.dat | ||
*.out | ||
*.pid | ||
*.gz | ||
|
||
# Runtime data | ||
pids | ||
logs | ||
results | ||
npm-debug.log | ||
*.pid | ||
*.seed | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directory | ||
# Commenting this out is preferred by some people, see | ||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- | ||
node_modules | ||
/test/output.txt | ||
|
||
# Users Environment Variables | ||
.lock-wscript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# The MIT License (MIT) | ||
|
||
Copyright (c) 2015 [JSTransformers Team](https://github.com/orgs/jstransformers/people) | ||
|
||
> Permission is hereby granted, free of charge, to any person obtaining a copy | ||
> of this software and associated documentation files (the "Software"), to deal | ||
> in the Software without restriction, including without limitation the rights | ||
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
> copies of the Software, and to permit persons to whom the Software is | ||
> furnished to do so, subject to the following conditions: | ||
> | ||
> The above copyright notice and this permission notice shall be included in | ||
> all copies or substantial portions of the Software. | ||
> | ||
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
> SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,29 @@ | ||
# jstransformer-mustache | ||
|
||
Transform Mustache templates into HTML. | ||
[Mustache](https://github.com/janl/mustache.js) support for [JSTransformers](http://github.com/jstransformers). | ||
|
||
[![Build Status](https://img.shields.io/travis/jstransformers/jstransformer-mustache/master.svg)](https://travis-ci.org/jstransformers/jstransformer-mustache) | ||
[![Dependency Status](https://img.shields.io/david/jstransformers/jstransformer-mustache.svg)](https://david-dm.org/jstransformers/jstransformer-mustache) | ||
[![Coverage Status](https://img.shields.io/coveralls/jstransformers/jstransformer-mustache/master.svg)](https://coveralls.io/r/jstransformers/jstransformer-mustache?branch=master) | ||
[![Dependency Status](https://img.shields.io/david/jstransformers/jstransformer-mustache/master.svg)](http://david-dm.org/jstransformers/jstransformer-mustache) | ||
[![NPM version](https://img.shields.io/npm/v/jstransformer-mustache.svg)](https://www.npmjs.org/package/jstransformer-mustache) | ||
|
||
## Installation | ||
|
||
npm install jstransformer-mustache | ||
|
||
## API | ||
|
||
```js | ||
var mustache = require('jstransformer')(require('jstransformer-mustache')) | ||
|
||
var locals = { | ||
name: "World" | ||
}; | ||
|
||
mustache.render('Hello, {{name}}!</h1>', locals).body | ||
//=> 'Hello, World!' | ||
``` | ||
|
||
## License | ||
|
||
MIT | ||
MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,30 @@ | ||
{ | ||
"name": "jstransformer-mustache", | ||
"version": "0.0.4", | ||
"description": "Transform Mustache templates into HTML.", | ||
"version": "0.1.0", | ||
"description": "Mustache.js support for JSTransformers.", | ||
"keywords": [ | ||
"jstransformer", | ||
"mustache" | ||
"jstransformer" | ||
], | ||
"files": [ | ||
"index.js" | ||
], | ||
"dependencies": { | ||
"mustache": "~2.0.0" | ||
"mustache": "^2.1.2" | ||
}, | ||
"devDependencies": { | ||
"coveralls": "^2.11.2", | ||
"istanbul": "^0.3.5" | ||
"test-jstransformer": "^1.0.0" | ||
}, | ||
"scripts": { | ||
"test": "node test", | ||
"coverage": "istanbul cover test", | ||
"coveralls": "npm run coverage && cat ./coverage/lcov.info | coveralls" | ||
"test": "test-jstransformer", | ||
"coverage": "test-jstransformer coverage" | ||
}, | ||
"files": [ | ||
"index.js", | ||
"README.md", | ||
"LICENSE", | ||
"History.md" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/jstransformers/jstransformer-mustache.git" | ||
}, | ||
"author": "Rob Loach <robloach@gmail.com>", | ||
"author": { | ||
"name": "JSTransformers Team", | ||
"url": "http://github.com/orgs/jstransformers/people" | ||
}, | ||
"license": "MIT" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": { | ||
"first": "Michael", | ||
"last": "Jackson" | ||
}, | ||
"age": "RIP" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |