[whatwg] Embedding custom hierarchical data

Hay (Husky) huskyr at gmail.com
Tue Mar 15 14:45:33 PDT 2011


Thanks for the suggestion Bjartur, but unfortunately that's not an
option in the usecase. Data is parsed using Freemarker (a template
language) and can't be included using a <script src=""> tag.

-- Hay

On Tue, Mar 15, 2011 at 10:15 PM, Bjartur Thorlacius
<svartman95 at gmail.com> wrote:
> On 3/15/11, Hay (Husky) <huskyr at gmail.com> wrote:
>> Hi everyone,
>> what would be the 'preferred' way to embed custom hierarchical data in
>> a HTML document?
>>
> You should also consider passing the data along with the script and HTML,
> rather than embedding it in the markup. This may save you from headaches
> stemming from the data being parsed as HTML.
>



More information about the whatwg mailing list