Comparing version 2.0.0-alpha6 to 2.0.0-alpha7
@@ -11,3 +11,3 @@ 'use strict'; | ||
'pug-lexer', | ||
'pug-loader', | ||
'pug-load', | ||
'pug-parser', | ||
@@ -14,0 +14,0 @@ 'pug-runtime', |
@@ -18,3 +18,3 @@ 'use strict'; | ||
var parse = require('pug-parser'); | ||
var load = require('pug-loader'); | ||
var load = require('pug-load'); | ||
var filters = require('pug-filters'); | ||
@@ -55,3 +55,3 @@ var link = require('pug-linker'); | ||
tokens = tokens.map(function (token) { | ||
if (token.type === 'path' && token.val.indexOf('.') === -1) { | ||
if (token.type === 'path' && path.extname(token.val) === '') { | ||
return { | ||
@@ -58,0 +58,0 @@ type: 'path', |
{ | ||
"name": "pug", | ||
"description": "A clean, whitespace-sensitive template language for writing HTML", | ||
"version": "2.0.0-alpha6", | ||
"version": "2.0.0-alpha7", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
@@ -24,8 +24,8 @@ "maintainers": [ | ||
"pug-code-gen": "0.0.7", | ||
"pug-filters": "1.2.1", | ||
"pug-lexer": "1.0.1", | ||
"pug-filters": "^1.2.1", | ||
"pug-lexer": "^1.0.1", | ||
"pug-linker": "0.0.4", | ||
"pug-loader": "1.0.2", | ||
"pug-parser": "1.0.0", | ||
"pug-runtime": "2.0.1", | ||
"pug-load": "^1.0.3", | ||
"pug-parser": "^1.0.0", | ||
"pug-runtime": "^2.0.1", | ||
"pug-strip-comments": "0.0.1" | ||
@@ -72,3 +72,3 @@ }, | ||
}, | ||
"homepage": "http://pug-lang.com" | ||
"homepage": "http://jade-lang.com" | ||
} |
@@ -9,3 +9,3 @@ # Pug - 模板引擎 | ||
**本文档已经非常过时了,所以很多例子都有可能无法使用。最新的范例可以在[官方英文文档](http://pug-lang.com/reference/)找到。** | ||
**本文档已经非常过时了,所以很多例子都有可能无法使用。最新的范例可以在[官方英文文档](http://jade-lang.com/reference/)找到。** | ||
@@ -20,3 +20,3 @@ 从 Pug `v0.31.0` 开始放弃了对于 `<script>` 和 `<style>` 标签的平文本支持. 这个问题你可以在 `<script> <style>` 标签后加上 `.` 来解决. | ||
你可以在网上[试玩 Pug](http://naltatis.github.com/pug-syntax-docs). | ||
你可以在网上[试玩 Pug](http://jade-lang.com/). | ||
@@ -23,0 +23,0 @@ ## README 目录 |
@@ -1,5 +0,7 @@ | ||
# [![Pug - Node Template Engine](http://garthdb.com/img/pug_branding/pug-01.svg)](http://pug-lang.com/) | ||
# [![Pug - Node Template Engine](https://cdn.rawgit.com/pugjs/pug-logo/3ea2d3a86c6227020dd5b20743a5aa458808ca4e/SVG/__pug-logo-colour-wide.svg)](http://jade-lang.com/) | ||
Full documentation is at [pug-lang.com](http://pug-lang.com/) | ||
> Pug has been recently re-named from Jade. The website and documentation are still being updated, but if you're new to pug, you should install the pug package on npm. | ||
Full documentation is at [jade-lang.com](http://jade-lang.com/) | ||
Pug is a high performance template engine heavily influenced by [Haml](http://haml.info/) | ||
@@ -10,3 +12,3 @@ and implemented with JavaScript for [node](http://nodejs.org) and browsers. For bug reports, | ||
You can test drive Pug online [here](http://naltatis.github.com/pug-syntax-docs). | ||
You can test drive Pug online [here](http://jade-lang.com/). | ||
@@ -73,7 +75,7 @@ [![Build Status](https://img.shields.io/travis/pugjs/pug/master.svg?style=flat)](https://travis-ci.org/pugjs/pug) | ||
The official [pug tutorial](http://pug-lang.com/tutorial/) is a great place to start. While that (and the syntax documentation) is being finished, you can view some of the old documentation [here](https://github.com/pugjs/pug/blob/master/pug.md) and [here](https://github.com/pugjs/pug/blob/master/pug-language.md) | ||
The official [Pug tutorial](http://jade-lang.com/tutorial/) is a great place to start. | ||
## API | ||
For full API, see [pug-lang.com/api](http://pug-lang.com/api/) | ||
For full API, see [jade-lang.com/api](http://jade-lang.com/api/) | ||
@@ -138,3 +140,3 @@ ```js | ||
- [php](https://github.com/kylekatarnls/jade-php) | ||
- [scala](http://scalate.fusesource.org/versions/snapshot/documentation/scaml-reference.html) | ||
- [scala](https://scalate.github.io/scalate/documentation/scaml-reference.html) | ||
- [ruby](https://github.com/slim-template/slim) | ||
@@ -141,0 +143,0 @@ - [python](https://github.com/SyrusAkbary/pyjade) |
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
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
156
1
86523
+ Addedpug-load@^1.0.3
+ Addedjstransformer@1.0.0(transitive)
+ Addedpug-filters@1.2.4(transitive)
+ Addedpug-lexer@1.2.0(transitive)
+ Addedpug-load@1.0.3(transitive)
+ Addedpug-walk@1.1.8(transitive)
- Removedpug-loader@1.0.2
- Removedjstransformer@0.0.3(transitive)
- Removedpug-filters@1.2.1(transitive)
- Removedpug-lexer@1.0.1(transitive)
- Removedpug-loader@1.0.2(transitive)
- Removedpug-runtime@2.0.1(transitive)
Updatedpug-filters@^1.2.1
Updatedpug-lexer@^1.0.1
Updatedpug-parser@^1.0.0
Updatedpug-runtime@^2.0.1