PageSourceSearch

https://app.inventapalabras.com/assets/InventaPalabrasApp/src/TwigHelper-d1c0abf371dd95f1e1a89525c2d54f42.js

js inventapalabras.com collected 2026-10-04 12:29:28 UTC 1,444 bytes, 42 lines download raw bytes

1function _class_call_check(instance, Constructor) {
2    if (!(instance instanceof Constructor)) {
3        throw new TypeError("Cannot call a class as a function");
4    }
5}
6function _defineProperties(target, props) {
7    for(var i = 0; i < props.length; i++){
8        var descriptor = props[i];
9        descriptor.enumerable = descriptor.enumerable || false;
10        descriptor.configurable = true;
11        if ("value" in descriptor) descriptor.writable = true;
12        Object.defineProperty(target, descriptor.key, descriptor);
13    }
14}
15function _create_class(Constructor, protoProps, staticProps) {
16    if (protoProps) _defineProperties(Constructor.prototype, protoProps);
17    if (staticProps) _defineProperties(Constructor, staticProps);
18    return Constructor;
19}
20import $ from "jquery";
21import Twig from "twig";
22var TwigHelper = /*#__PURE__*/ function() {
23    "use strict";
24    function TwigHelper() {
25        _class_call_check(this, TwigHelper);
26    }
27    _create_class(TwigHelper, null, [
28        {
29            key: "render",
30            value: function render(templateId, context) {
31                var templateData = $(document.getElementById(templateId)).html();
32                var template = Twig.twig({
33                    data: templateData
34                });
35                return template.render(context);
36            // return twig()
37            }
38        }
39    ]);
40    return TwigHelper;
41}();
42export { TwigHelper as default };

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.