@tsed/engines 8.34.0 → 8.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/components/AtplEngine.js +1 -1
- package/lib/esm/components/BracketEngine.js +1 -1
- package/lib/esm/components/DotEngine.js +1 -1
- package/lib/esm/components/DustEngine.js +2 -2
- package/lib/esm/components/EctEngine.js +2 -2
- package/lib/esm/components/EjsEngine.js +1 -1
- package/lib/esm/components/HamlCoffeeEngine.js +1 -1
- package/lib/esm/components/HamlEngine.js +1 -1
- package/lib/esm/components/HamletEngine.js +1 -1
- package/lib/esm/components/HandlebarsEngine.js +1 -1
- package/lib/esm/components/HoganEngine.js +1 -1
- package/lib/esm/components/HtmlingEngine.js +1 -1
- package/lib/esm/components/JazzEngine.js +1 -1
- package/lib/esm/components/JqtplEngine.js +1 -1
- package/lib/esm/components/JustEngine.js +2 -2
- package/lib/esm/components/LiquorEngine.js +1 -1
- package/lib/esm/components/LodashEngine.js +1 -1
- package/lib/esm/components/MoteEngine.js +1 -1
- package/lib/esm/components/MustacheEngine.js +1 -1
- package/lib/esm/components/NunjucksEngine.js +2 -2
- package/lib/esm/components/PlatesEngine.js +1 -1
- package/lib/esm/components/PugEngine.js +1 -1
- package/lib/esm/components/RactiveEngine.js +1 -1
- package/lib/esm/components/ReactEngine.js +3 -3
- package/lib/esm/components/SlmEngine.js +1 -1
- package/lib/esm/components/SquirrellyEngine.js +1 -1
- package/lib/esm/components/SwigEngine.js +1 -1
- package/lib/esm/components/TemplayedEngine.js +1 -1
- package/lib/esm/components/TwigEngine.js +1 -1
- package/lib/esm/components/TwingEngine.js +2 -2
- package/lib/esm/components/UnderscoreEngine.js +1 -1
- package/lib/esm/components/VashEngine.js +2 -2
- package/lib/esm/components/VelocityEngine.js +1 -1
- package/lib/esm/components/WalrusEngine.js +1 -1
- package/lib/esm/utils/cache.js +1 -1
- package/package.json +10 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
3
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
4
|
let AtplEngine = class AtplEngine extends Engine {
|
|
5
5
|
};
|
|
6
6
|
AtplEngine = __decorate([
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
3
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
4
|
let BracketEngine = class BracketEngine extends Engine {
|
|
5
5
|
$compile(template, options) {
|
|
6
6
|
return this.engine.compile(template, options);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
3
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
4
|
let DotEngine = class DotEngine extends Engine {
|
|
5
5
|
getSettings(options) {
|
|
6
6
|
const settings = Object.assign({}, this.engine.templateSettings);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
+
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
2
4
|
import { extname } from "node:path";
|
|
3
5
|
import { promisify } from "node:util";
|
|
4
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
5
6
|
import { read } from "../utils/cache.js";
|
|
6
|
-
import { Engine } from "./Engine.js";
|
|
7
7
|
let DustEngine = class DustEngine extends Engine {
|
|
8
8
|
constructor() {
|
|
9
9
|
super(...arguments);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { promisify } from "node:util";
|
|
3
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
|
+
import { promisify } from "node:util";
|
|
5
5
|
let EctEngine = class EctEngine extends Engine {
|
|
6
6
|
$compile(template, options) {
|
|
7
7
|
const ECT = this.engine;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
3
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
4
|
let EjsEngine = class EjsEngine extends Engine {
|
|
5
5
|
};
|
|
6
6
|
EjsEngine = __decorate([
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
3
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
4
|
let HamlCoffeeEngine = class HamlCoffeeEngine extends Engine {
|
|
5
5
|
};
|
|
6
6
|
HamlCoffeeEngine = __decorate([
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
3
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
4
|
let HamlEngine = class HamlEngine extends Engine {
|
|
5
5
|
$compile(template, options) {
|
|
6
6
|
return (options) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
3
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
4
|
let HamletEngine = class HamletEngine extends Engine {
|
|
5
5
|
$compile(template, options) {
|
|
6
6
|
return (options) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
3
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
4
|
let HandlebarsEngine = class HandlebarsEngine extends Engine {
|
|
5
5
|
configure(options) {
|
|
6
6
|
for (const partial in options.partials) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
3
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
4
|
let HoganEngine = class HoganEngine extends Engine {
|
|
5
5
|
$compile(template, options) {
|
|
6
6
|
const compile = this.engine.compile(template, options);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
3
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
4
|
let HtmlingEngine = class HtmlingEngine extends Engine {
|
|
5
5
|
$compile(template) {
|
|
6
6
|
const compile = this.engine.string(template);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
3
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
4
|
let JazzEngine = class JazzEngine extends Engine {
|
|
5
5
|
$compile(template, options) {
|
|
6
6
|
const compile = this.engine.compile(template, options);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
3
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
4
|
let JqtplEngine = class JqtplEngine extends Engine {
|
|
5
5
|
$compile(template, options) {
|
|
6
6
|
this.engine.template(template, template);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { promisify } from "node:util";
|
|
3
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
|
+
import { promisify } from "node:util";
|
|
5
5
|
let JustEngine = class JustEngine extends Engine {
|
|
6
6
|
$compile(template, options) {
|
|
7
7
|
const JUST = this.engine;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
3
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
4
|
let LiquorEngine = class LiquorEngine extends Engine {
|
|
5
5
|
};
|
|
6
6
|
LiquorEngine = __decorate([
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
3
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
4
|
let LodashEngine = class LodashEngine extends Engine {
|
|
5
5
|
render(template, options) {
|
|
6
6
|
const compile = this.compile(template, options);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
3
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
4
|
let MoteEngine = class MoteEngine extends Engine {
|
|
5
5
|
};
|
|
6
6
|
MoteEngine = __decorate([
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
3
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
4
|
let MustacheEngine = class MustacheEngine extends Engine {
|
|
5
5
|
$compile(template, options) {
|
|
6
6
|
return (options) => this.engine.render(template, options, options.partials);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { promisify } from "node:util";
|
|
3
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
|
+
import { promisify } from "node:util";
|
|
5
5
|
let NunjucksEngine = class NunjucksEngine extends Engine {
|
|
6
6
|
configure(options) {
|
|
7
7
|
const engine = options.nunjucksEnv || this.engine;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
3
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
4
|
let PlatesEngine = class PlatesEngine extends Engine {
|
|
5
5
|
$compile(template, options) {
|
|
6
6
|
return (options) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
3
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
4
|
let PugEngine = class PugEngine extends Engine {
|
|
5
5
|
$compile(template, options) {
|
|
6
6
|
return this.engine.compile(template, options);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
3
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
4
|
let RactiveEngine = class RactiveEngine extends Engine {
|
|
5
5
|
$compile(template, options) {
|
|
6
6
|
const Engine = this.engine;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { Engine } from "./Engine.js";
|
|
3
|
+
import { getCachedEngine, getFromCache, importEngine, setToCache } from "../utils/cache.js";
|
|
4
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
2
5
|
import { readFileSync } from "node:fs";
|
|
3
6
|
import { resolve } from "node:path";
|
|
4
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
5
|
-
import { getCachedEngine, getFromCache, importEngine, setToCache } from "../utils/cache.js";
|
|
6
|
-
import { Engine } from "./Engine.js";
|
|
7
7
|
let ReactEngine = class ReactEngine extends Engine {
|
|
8
8
|
constructor(name, options) {
|
|
9
9
|
super(name, options);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
3
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
4
|
let SlmEngine = class SlmEngine extends Engine {
|
|
5
5
|
};
|
|
6
6
|
SlmEngine = __decorate([
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
3
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
4
|
let SquirrellyEngine = class SquirrellyEngine extends Engine {
|
|
5
5
|
$compile(template, options) {
|
|
6
6
|
for (const partial in options.partials) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
3
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
4
|
let SwigEngine = class SwigEngine extends Engine {
|
|
5
5
|
$compile(template, options) {
|
|
6
6
|
if (options.cache === true)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
3
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
4
|
let TemplayedEngine = class TemplayedEngine extends Engine {
|
|
5
5
|
$compile(template, options) {
|
|
6
6
|
return this.engine(template);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
3
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
4
|
let TwigEngine = class TwigEngine extends Engine {
|
|
5
5
|
$cacheOptions(template, options) {
|
|
6
6
|
return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { existsSync } from "node:fs";
|
|
3
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
|
+
import { existsSync } from "node:fs";
|
|
5
5
|
let TwingEngine = class TwingEngine extends Engine {
|
|
6
6
|
$compile(template, options) {
|
|
7
7
|
const engine = this.engine;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
3
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
4
|
let UnderscoreEngine = class UnderscoreEngine extends Engine {
|
|
5
5
|
async render(template, options) {
|
|
6
6
|
const tpl = await this.compile(template, options)(options);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { promisify } from "node:util";
|
|
3
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
|
+
import { promisify } from "node:util";
|
|
5
5
|
let VashEngine = class VashEngine extends Engine {
|
|
6
6
|
compile(template, options) {
|
|
7
7
|
if (options.helpers) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
3
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
4
|
let VelocityEngine = class VelocityEngine extends Engine {
|
|
5
5
|
$compile(template, options) {
|
|
6
6
|
return (options) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
|
-
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
3
2
|
import { Engine } from "./Engine.js";
|
|
3
|
+
import { ViewEngine } from "../decorators/viewEngine.js";
|
|
4
4
|
let WalrusEngine = class WalrusEngine extends Engine {
|
|
5
5
|
$compile(template, options) {
|
|
6
6
|
const compile = this.engine.parse(template);
|
package/lib/esm/utils/cache.js
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/engines",
|
|
3
|
+
"version": "8.35.0",
|
|
3
4
|
"description": "Template engines library. Provide an API to adding custom engines from decorators.",
|
|
4
|
-
"
|
|
5
|
-
|
|
5
|
+
"keywords": [
|
|
6
|
+
"TypeScript",
|
|
7
|
+
"decorators",
|
|
8
|
+
"engines",
|
|
9
|
+
"view"
|
|
10
|
+
],
|
|
6
11
|
"source": "./src/index.ts",
|
|
12
|
+
"type": "module",
|
|
7
13
|
"main": "./lib/esm/index.js",
|
|
8
14
|
"module": "./lib/esm/index.js",
|
|
9
15
|
"typings": "./lib/types/index.d.ts",
|
|
@@ -42,8 +48,8 @@
|
|
|
42
48
|
"@babel/plugin-transform-runtime": "7.25.7",
|
|
43
49
|
"@babel/preset-env": "7.27.2",
|
|
44
50
|
"@babel/preset-react": "7.25.7",
|
|
45
|
-
"@tsed/barrels": "8.
|
|
46
|
-
"@tsed/typescript": "8.
|
|
51
|
+
"@tsed/barrels": "8.35.0",
|
|
52
|
+
"@tsed/typescript": "8.35.0",
|
|
47
53
|
"@types/semver": "^7.5.8",
|
|
48
54
|
"atpl": "0.9.3",
|
|
49
55
|
"bracket-template": "^1.1.5",
|
|
@@ -56,7 +62,6 @@
|
|
|
56
62
|
"eco": "^1.1.0-rc-3",
|
|
57
63
|
"ect": "^0.5.9",
|
|
58
64
|
"ejs": "^3.1.10",
|
|
59
|
-
"eslint": "9.12.0",
|
|
60
65
|
"haml": "^0.4.3",
|
|
61
66
|
"haml-coffee": "^1.14.1",
|
|
62
67
|
"hamlet": "^0.3.3",
|
|
@@ -97,12 +102,6 @@
|
|
|
97
102
|
"walrus": "^0.10.1",
|
|
98
103
|
"whiskers": "^0.4.0"
|
|
99
104
|
},
|
|
100
|
-
"keywords": [
|
|
101
|
-
"TypeScript",
|
|
102
|
-
"decorators",
|
|
103
|
-
"engines",
|
|
104
|
-
"view"
|
|
105
|
-
],
|
|
106
105
|
"peerDependencies": {},
|
|
107
106
|
"repository": "https://github.com/tsedio/tsed",
|
|
108
107
|
"bugs": {
|