Socket
Socket
Sign inDemoInstall

velocityjs

Package Overview
Dependencies
0
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.9.5 to 0.9.6

4

History.md

@@ -0,1 +1,5 @@

## 0.9.6 2017-04-14
- fix: keep newline after unparse block [!83](https://github.com/shepherdwind/velocity.js/pull/83)
## 0.9.5 2017-04-07

@@ -2,0 +6,0 @@

2

package.json
{
"name": "velocityjs",
"description": "Velocity Template Language(VTL) for JavaScript",
"version": "0.9.5",
"version": "0.9.6",
"keywords": [

@@ -6,0 +6,0 @@ "velocity template"

@@ -24,3 +24,3 @@ Velocity - Template Engine

##Features
## Features

@@ -32,3 +32,3 @@ - Supports both client and server side use.

##Install
## Install

@@ -41,3 +41,3 @@ via npm:

##Broswer
## Broswer

@@ -52,7 +52,7 @@ Compatible all modern broswer, You can try [test case](http://git.shepherdwind.com/velocity.js/runner/tests.html) on your browser to test it.

##Examples
## Examples
You can find a lot of examples from the tests directory. There is no different between the use of browser and NodeJs.
##Public API
## Public API

@@ -88,3 +88,3 @@ ```

####context
#### context

@@ -131,7 +131,7 @@ `context` is an object or undefined, for vm `$foo.bar`, data look up path will be `context.foo.bar`.

##Syntax
## Syntax
Syntax you can find from [velocity user guide](http://velocity.apache.org/engine/devel/user-guide.html)。
###Directives
### Directives

@@ -142,3 +142,3 @@ Directives supports have `set`, `foreach`, `if|else|elseif`, `macro`, `break`, `stop`.

##Questions
## Questions

@@ -155,4 +155,4 @@ You can find help from those ways:

##License
## License
(The MIT License)

@@ -31,3 +31,4 @@ 'use strict';

var TRIM_REG = /^[ \t]*\n/;
if (ast.type && ast.type !== 'references') {
// after raw and references, then keep the newline.
if (ast.type && ['references', 'raw'].indexOf(ast.type) === -1) {
var _ast = asts[i + 1];

@@ -34,0 +35,0 @@ if (typeof _ast === 'string' && TRIM_REG.test(_ast)) {

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc