UNPKG

twing

Version:

First-class Twig engine for Node.js

17 lines (16 loc) 468 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createWithNode = void 0; const node_1 = require("../node"); const createWithNode = (body, variables, only, line, column, tag) => { const children = { body }; if (variables) { children.variables = variables; } return (0, node_1.createBaseNode)("with", { only }, children, line, column, tag); }; exports.createWithNode = createWithNode;