Comparing version 0.0.66 to 0.0.67
@@ -9,9 +9,9 @@ 'use strict'; | ||
__express: renderFile, | ||
compileFile: renderFile, | ||
compile: getParser().compileSync, | ||
renderFile: renderFile, | ||
render: getParser().compileSync, | ||
/** | ||
* @deprecated Since version "0.0.66". Will be deleted in version "1.0.0". Use 'compile' instead. | ||
* @deprecated Since version "0.0.66". Will be deleted in version "1.0.0". Use 'render' instead. | ||
*/ | ||
compileSync: function () { | ||
console.warn("The 'compileSync' method is deprecated. Will be deleted in version '1.0.0'. Use 'compile' instead."); | ||
console.warn("The 'compileSync' method is deprecated. Will be deleted in version '1.0.0'. Use 'render' instead."); | ||
var parser = getParser(); | ||
@@ -18,0 +18,0 @@ parser.compileSync.apply(parser, arguments); |
{ | ||
"name": "raz", | ||
"description": "Razor-like Template Engine for NodeJS Express library based on ASP.NET MVC Razor syntax. Template your views by mixing HTML markup with JavaScript server-side code!", | ||
"version": "0.0.66", | ||
"version": "0.0.67", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Sergey Fisun", |
@@ -187,3 +187,3 @@ # RAZ: Razor-Express view template engine | ||
const razor = require("raz"); | ||
var html = razor.compileSync({ model, template }); | ||
var html = razor.compile({ model, template }); | ||
``` | ||
@@ -319,3 +319,3 @@ | ||
try{ | ||
var html = razor.compileSync({ template }); | ||
var html = razor.compile({ template }); | ||
} | ||
@@ -322,0 +322,0 @@ catch(err){ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
424146
80