Skip to content

Embebed data

The <script type="data"> composer supports three types of data that can be included directly within its HTML tag: CSV, JSON and JSON5. The type of format is directly deduced from the content.

  • Example using CSV:

  • Example using JSON:

  • Example using JSON5 (a JavaScript object):

WARNING

In some environments the script type="data has conflicts. In these cases, you can use alternatively <g-script type="data"></g-script>.

Released under the MIT License.