Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
First commit -- SquirrellyJS works!
  • Loading branch information
nebrelbug committed Jul 4, 2018
1 parent 11e4da4 commit eb73220
Show file tree
Hide file tree
Showing 90 changed files with 4,993 additions and 268 deletions.
208 changes: 118 additions & 90 deletions README.md

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions engines/squirrelly.js
@@ -0,0 +1,16 @@
var Sqrl = require('squirrelly')

module.exports = {
name: 'squirrelly',
ext: 'sqrl',
render: function (template, data, callback) {
callback(null, template(data, Sqrl));
},
compile: function (src, templatePath, templateName, callback) {
var compiled = 'module.exports=' + Sqrl.Precompile(src).toString()
callback(null, compiled);
},
load: function (src, templatePath, templateName, callback) {
callback(null, Sqrl.Precompile(src));
}
};
2 changes: 1 addition & 1 deletion output/compiled.min/friends/dust.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion output/compiled.min/friends/marko.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion output/compiled.min/if-expression/jade.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion output/compiled.min/if-expression/marko.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion output/compiled.min/if-expression/pug.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion output/compiled.min/projects-escaped/dust.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion output/compiled.min/projects-escaped/handlebars.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eb73220

Please sign in to comment.