vigetlabs / blendid

A delicious blend of gulp tasks combined into a configurable asset pipeline and static site builder
MIT License
4.97k stars 683 forks source link

Access global.json from javascript module #520

Closed schellenbergk closed 6 years ago

schellenbergk commented 6 years ago

Is there an easy way to access global.json from javascript module? Thanks.

cesasol commented 6 years ago

just add the desired variable inside a script tag:

<script>
var globalData: {{someVariable}}
</script>