magic-templates
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "magic-templates", | ||
"description": "Templating framework for NodeJS inspired by Django templates.", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"homepage": "https://github.com/Kami/magic-templates", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -28,3 +28,3 @@ Magic templates | ||
var sys = require('sys') | ||
var util = require('util') | ||
, templates = require('template'); | ||
@@ -39,9 +39,9 @@ | ||
if( err ) // load/parse errors (invalid filename, bad template syntax) | ||
sys.puts( err ); | ||
util.puts( err ); | ||
else | ||
template.render( context, function( err, output ) { | ||
if( err ) // render errors (invalid filename in context variables, bad context variables) | ||
sys.puts( err ); | ||
util.puts( err ); | ||
else | ||
sys.puts( output.join("") ); | ||
util.puts( output.join("") ); | ||
}); | ||
@@ -48,0 +48,0 @@ }); |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
46299
0