Tangular icon indicating copy to clipboard operation
Tangular copied to clipboard

Tangular.render is not working

Open lcnvdl opened this issue 4 years ago • 1 comments

Hi! I have installed Tangular 4.0.0.

When I do this:

const Tangular = require("tangular");

Tangular.render("{{template}}", {template:"Ok"});

The application throws the next exception:

Tangular.render is not a function

Now, when I install Tangular ^2.0.1, it works fine!

What am I doing wrong?

lcnvdl avatar Oct 18 '20 02:10 lcnvdl

Hi, I updated a bit behaviour for Tangular and I forgot to update documentation.

require('tangular');
// Library registers "Tangular" and "Thelpers" as a global variable

// Now Tangular.render(), Tangular.compile() will work:
Tangular.render();

Thank you for the report.

petersirka avatar Oct 18 '20 07:10 petersirka