Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
language: node_js
node_js:
- node
- "stable"
- "lts/*"
- 6
- 4
cache:
directories:
- node_modules
Expand Down
26 changes: 14 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
{
"name": "posthtml-expressions",
"version": "1.1.0",
"version": "1.1.1",
"description": "Expressions Plugin for PostHTML",
"engines": { "node": ">=4" },
"main":"lib",
"engines": {
"node": ">=6"
},
"main": "lib",
"scripts": {
"lint": "standard",
"test": "nyc ava -v test/index.js",
"test": "nyc ava",
"logs": "standard-changelog -i CHANGELOG.md -w",
"docs": "jsdoc2md lib/*.js > INDEX.md",
"clean": "rm -rf .nyc_output coverage jsdoc-api dmd",
"start": "sudo npm run clean && npm run lint && sudo npm test"
},
"dependencies": {
"fclone": "^1.x"
"fclone": "^1.0.11"
},
"devDependencies": {
"ava": "^0.19.1",
"coveralls": "^2.13.1",
"jsdoc-to-markdown": "^3.0.0",
"nyc": "^10.3.2",
"posthtml": "^0.9.x",
"standard": "^10.0.2",
"standard-changelog": "^1.0.0"
"ava": "^1.4.1",
"coveralls": "^3.0.3",
"jsdoc-to-markdown": "^5.0.0",
"nyc": "^14.1.1",
"posthtml": "^0.11.4",
"standard": "^12.0.1",
"standard-changelog": "^2.0.11"
},
"files": [
"lib",
Expand Down
12 changes: 12 additions & 0 deletions test/expect/loop_conditional_locals.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<p>x</p>


<a class="selected" href="/page1">Page 1</a>


<a href="/page2">Page 2</a>


<a href="/page3">Page 3</a>

<p>x</p>
10 changes: 10 additions & 0 deletions test/fixtures/loop_conditional_locals.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<p>x</p>
<each loop="page in pages">
<if condition="page.path === current_path">
<a class="selected" href="{{ page.path }}">{{ page.title }}</a>
</if>
<else>
<a href="{{ page.path }}">{{ page.title }}</a>
</else>
</each>
<p>x</p>
273 changes: 0 additions & 273 deletions test/index.js

This file was deleted.

Loading