-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a flag to toggle class-templating-syntax
This commit adds a simple setting, which can be toggled by the configuration as part of the templating-model, to control if the old class based templating syntax (class='foo:bar') is interpreted as a call to a xquery function. This will allow to usage of colons inside classes (e.g. to use TailwindCSS) Bumped version to v1.2.0 Fixed boolean casting and added test
- Loading branch information
1 parent
c0f6e4b
commit 3f5bbe8
Showing
5 changed files
with
286 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,56 @@ | ||
{ | ||
"name": "templating", | ||
"version": "1.1.0", | ||
"description": "eXist-db HTML Templating Library", | ||
"homepage": "https://github.com/eXist-db/templating#readme", | ||
"bugs": "https://github.com/eXist-db/templating/issues", | ||
"keywords": [ | ||
"exist", | ||
"exist-db", | ||
"xml", | ||
"xql", | ||
"xquery" | ||
], | ||
"devDependencies": { | ||
"@existdb/gulp-exist": "^4.3.2", | ||
"@existdb/gulp-replace-tmpl": "^1.0.4", | ||
"axios": "^0.21.1", | ||
"chai": "^4.2.0", | ||
"chai-xml": "^0.4.0", | ||
"chokidar": "^3.5.3", | ||
"delete": "^1.1.0", | ||
"fs-extra": "^9.1.0", | ||
"glob-stream": "^7.0.0", | ||
"gulp": "^4.0.2", | ||
"gulp-rename": "^2.0.0", | ||
"gulp-zip": "^5.0.2", | ||
"jsdom": "^16.4.0", | ||
"mocha": "^10.1.0", | ||
"xmldoc": "^1.1.2", | ||
"yeoman-assert": "^3.1.1" | ||
}, | ||
"author": { | ||
"name": "The eXist-db Authors" | ||
}, | ||
"license": "LGPL-2.1", | ||
"scripts": { | ||
"start": "npm install && npm run build", | ||
"test": "gulp install:all && mocha test/mocha --recursive --exit && node test/xqs/xqSuite.js", | ||
"test:watch": "mocha test/mocha --recursive --watch", | ||
"build": "gulp build", | ||
"build:all": "gulp build:all" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/eXist-db/templating", | ||
"license": "LGPL-2.1" | ||
}, | ||
"funding": { | ||
"type": "opencollective", | ||
"url": "https://opencollective.com/existdb" | ||
}, | ||
"overrides": { | ||
"chokidar": "$chokidar", | ||
"glob-stream": "$glob-stream" | ||
} | ||
"name": "templating", | ||
"version": "1.2.0", | ||
"description": "eXist-db HTML Templating Library", | ||
"homepage": "https://github.com/eXist-db/templating#readme", | ||
"bugs": "https://github.com/eXist-db/templating/issues", | ||
"keywords": [ | ||
"exist", | ||
"exist-db", | ||
"xml", | ||
"xql", | ||
"xquery" | ||
], | ||
"devDependencies": { | ||
"@existdb/gulp-exist": "^4.3.2", | ||
"@existdb/gulp-replace-tmpl": "^1.0.4", | ||
"axios": "^0.21.1", | ||
"chai": "^4.2.0", | ||
"chai-xml": "^0.4.0", | ||
"chokidar": "^3.5.3", | ||
"delete": "^1.1.0", | ||
"fs-extra": "^9.1.0", | ||
"glob-stream": "^7.0.0", | ||
"gulp": "^4.0.2", | ||
"gulp-rename": "^2.0.0", | ||
"gulp-zip": "^5.0.2", | ||
"jsdom": "^16.4.0", | ||
"mocha": "^10.1.0", | ||
"xmldoc": "^1.1.2", | ||
"yeoman-assert": "^3.1.1" | ||
}, | ||
"author": { | ||
"name": "The eXist-db Authors" | ||
}, | ||
"license": "LGPL-2.1", | ||
"scripts": { | ||
"start": "npm install && npm run build", | ||
"test": "gulp install:all && mocha test/mocha --recursive --exit && node test/xqs/xqSuite.js", | ||
"test:watch": "mocha test/mocha --recursive --watch", | ||
"build": "gulp build", | ||
"build:all": "gulp build:all" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/eXist-db/templating", | ||
"license": "LGPL-2.1" | ||
}, | ||
"funding": { | ||
"type": "opencollective", | ||
"url": "https://opencollective.com/existdb" | ||
}, | ||
"overrides": { | ||
"chokidar": "$chokidar", | ||
"glob-stream": "$glob-stream" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<html> | ||
|
||
<head> | ||
<title>Test calling Templates from class</title> | ||
</head> | ||
|
||
<body> | ||
<p class="test:print-from-class"></p> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.