Thanks for the reply. I'm hoping to just update the jsreport server to latest for now.
DanielAlonsoPardo
@DanielAlonsoPardo
Posts made by DanielAlonsoPardo
-
RE: Assets in jsreport 2.1.0
-
Assets in jsreport 2.1.0
As I understand it, support for paths in
{#asset}
was introduced in 2.3.0. Does that mean the only way to use a resource is by pasting it into an asset created in the web client? Can I reference a file in any other way? -
RE: Escaping double brackets in imported assets (handlebar engine)
That looks pretty good, thanks. I'll update when I try it out.
Edit: it works! -
Escaping double brackets in imported assets (handlebar engine)
I webpacked a huge .js file that turns out to have several
{{
's in it. I have it loaded as a resource inside <script> tags and it runs fine with template engine set to 'none', but handlebars will complain.I've tried to use
{{{{raw}}}} {#asset script.js @encoding=utf8} {{{{/raw}}}}
, but it seems that handlebars does not even have that functionality implemented, even though it recommends its use on their own website.I guess my last resort would be to go to the big file and replace all
{{
with\{{
, or use @encode=link, but i'd rather not have to make assets publicly available (sub-question: can I make only certain files public?).
Is there a better way to achieve my goal of loading that script on a page? Some other way of escaping asset contents?