Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

raz

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

raz - npm Package Compare versions

Comparing version 0.0.69 to 0.0.70

4

core/errors/errors.en.js

@@ -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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc