Comparing version 0.0.69 to 0.0.70
@@ -146,3 +146,3 @@ const RazorError = require('./RazorError'); | ||
var message = `Sections named '${sectionName}' have already been rendered by '${renderedBy}'. There is an atempt to rendered it again by '${attemptedBy}'.`; | ||
return RazorError.new({ message, info: this.info, capture: this.sectionBeenRendered }); | ||
return RazorError.new({ message, info: this.info, capture: this.sectionsAlreadyRendered }); | ||
} | ||
@@ -152,3 +152,3 @@ | ||
var message = `Section '${sectionName}' in '${viewPath}' has never been rendered. If a section exists it must be rendered.`; | ||
return RazorError.new({ message, info: this.info, capture: this.sectionBeenRendered }); | ||
return RazorError.new({ message, info: this.info, capture: this.sectionNeverRendered }); | ||
} | ||
@@ -155,0 +155,0 @@ |
@@ -31,3 +31,3 @@ [<< Back to start](../README.md) | ||
const app = require('express')(); // the Express web server app. | ||
const razor = require('razor'); // the Razor-Express engine | ||
const razor = require('raz'); // the Razor-Express engine | ||
app.engine('raz', function (filePath, options, callback) { | ||
@@ -47,3 +47,2 @@ razor.renderFile(filePath, options, callback); | ||
const app = require('express')(); // the Express web server app | ||
const razor = require('razor'); // the Razor-Express engine | ||
app.set('view engine', 'raz'); // register the RAZ template engine | ||
@@ -63,4 +62,4 @@ // ... | ||
const app = require('express')(); // the Express web server app | ||
const razor = require('razor'); // the Razor-Express engine | ||
razor.register(app); // register the RAZ template engine | ||
const raz = require('raz'); // the Razor-Express engine | ||
raz.register(app); // register the RAZ template engine | ||
// ... | ||
@@ -78,3 +77,3 @@ ``` | ||
const app = require('express')(); // the Express web server app | ||
const razor = require('razor'); // the Razor-Express engine | ||
const raz = require('raz'); // the Razor-Express engine | ||
raz.handleErrors(app); // set default error-handler for Razor-Express errors | ||
@@ -81,0 +80,0 @@ ``` |
@@ -0,4 +1,5 @@ | ||
[<< Back to start](../README.md) | ||
# Razor-Express syntax reference for NodeJS & Express | ||
[<< Back to start](../README.md) | ||
- [**A simple example**](#a-simple-example-of-razor-express-markup) | ||
@@ -5,0 +6,0 @@ - [**Escaping `@` character**](#escaping--character) |
{ | ||
"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.69", | ||
"version": "0.0.70", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Sergey Fisun", |
@@ -160,3 +160,3 @@ # RAZ: Razor-Express view template engine for NodeJS | ||
As you can see the **view-template** (or just **view**) is nothing more than *HTML markup mixed with JavaScript syntax*. This is exactly what [Razor-Express syntax](https://github.com/DevelAx/RazorExpress/blob/master/docs/syntax.md) is. | ||
As you can see the [*view-template*](/docs/overview.md#views-and-view-template-engine) (or just *view*) is nothing more than *HTML markup mixed with JavaScript syntax*. This is exactly what [Razor-Express syntax](https://github.com/DevelAx/RazorExpress/blob/master/docs/syntax.md) is. | ||
@@ -163,0 +163,0 @@ Now we are going to take these two components and "compile" them into pure HTML. |
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
428989