Make json in CDATA, add error for no dataRaw from file
Showing
2 changed files
with
1 additions
and
0 deletions
This diff is collapsed.
Click to expand it.
... | @@ -62,6 +62,7 @@ along with this software (see the LICENSE.md file). If not, see | ... | @@ -62,6 +62,7 @@ along with this software (see the LICENSE.md file). If not, see |
62 | <service-call name="mjml.MjmlServices.get#GlobalGrapeVarList" out-map="context"/> | 62 | <service-call name="mjml.MjmlServices.get#GlobalGrapeVarList" out-map="context"/> |
63 | <set field="defaultLocation" value="dbresource://grapesjs/template/default.json"/> | 63 | <set field="defaultLocation" value="dbresource://grapesjs/template/default.json"/> |
64 | <set field="dataRaw" from="ec.resource.getLocationReference(defaultLocation).getText()"/> | 64 | <set field="dataRaw" from="ec.resource.getLocationReference(defaultLocation).getText()"/> |
65 | <if condition="!dataRaw"><log level="error" message="Template not found at ${defaultLocation}. Please load seed data for moqui-mjml."/></if> | ||
65 | <set field="htmlLocation" from="grapesJsResource.location + '/' + htmlFile?.dbResourceId + '.html'"/> | 66 | <set field="htmlLocation" from="grapesJsResource.location + '/' + htmlFile?.dbResourceId + '.html'"/> |
66 | <set field="grapesLocation" from="grapesJsResource.location + '/' + grapesFile?.dbResourceId + '.json'"/> | 67 | <set field="grapesLocation" from="grapesJsResource.location + '/' + grapesFile?.dbResourceId + '.json'"/> |
67 | <script><![CDATA[ | 68 | <script><![CDATA[ | ... | ... |
-
Please register or sign in to post a comment