Rendering Parent and Child Templates With No Local Storage
-
If I am sending the template solely through template['content'], how do I send any child template that it references?
Using the example: https://playground.jsreport.net/w/admin/hG7mEoll
I can see the contents "Orders" being sent over http but I don't see the contents of "OrdersHeader".
-
You can't sent child templates inside rendering requests, these must be stored in the templates store.
However, you are referring to the pdf utils merge operation. The operation content can be sent in the request directly without a need for a persisted template. See the docs here
https://jsreport.net/learn/pdf-utils#api
-
Can I merge more then one template? I am trying to see if I can implement a standalone jsreport server that only generates reports through API.
In this example: https://playground.jsreport.net/w/admin/dI2_fUqZ Are items saved in a template store?
Edit: Nevermind looks like the documentation answers my question.
-
There is no solution if I only want to output html, correct?
-
Html recipe
https://jsreport.net/learn/recipes