[FreeMarker-user] Validating Template Against JSON
Generates text that depends on changing data (like dynamic HTML).
Brought to you by:
revusky
From: sjkelleyjr <sjk...@gm...> - 2018-11-30 20:25:35
|
I'm trying to validate a template given a JSON structure. By this I mean, given a template with fields to read from a JSON file, and the JSON file, I'd like to ensure all of the fields expected in the template are present in the JSON file. A programmatic version of this would be perfect (with an error message, rather than an empty template if the JSON property doesn't exist): https://try.freemarker.apache.org/ Is there an existing solution to this, or is this something I'll have to write myself? If it is something I'll have to write myself, and suggestions on how to proceed with this task? -- Sent from: http://freemarker.624813.n4.nabble.com/freemarker-user-f624814.html |