Sha256: 4a1fdc1a261efb8a6a24a61e28d2e89b9e815a05974011a14dc6a52bfeb203d8
Contents?: true
Size: 1.9 KB
Versions: 1
Compression:
Stored size: 1.9 KB
Contents
{% comment %} # ----------------------------------------------------------------------------- # ~/themes/j1/layouts/js_init_generator.html # Liquid template to generate all Javascript init scripts defined # for a layout # # Product/Info: # https://jekyll.one # # Copyright (C) 2019 Juergen Adams # # J1 Template is licensed under the MIT License. # See: https://github.com/jekyll-one-org/j1_template/blob/master/LICENSE # # ----------------------------------------------------------------------------- # Test data: # {{ lanes_collate | debug }} # ----------------------------------------------------------------------------- {% endcomment %} {% comment %} Liquid procedures -------------------------------------------------------------------------------- {% endcomment %} {% capture module_writer %}themes/{{site.template.name}}/procedures/layouts/module_writer.proc{% endcapture %} {% comment %} Variables -------------------------------------------------------------------------------- {% endcomment %} {% assign resource_placement = include.region %} {% assign items_collate = site.data.j1_resources %} {% comment %} Main -------------------------------------------------------------------------------- {% endcomment %} {% if page.debug %} <!-- [INFO ] [j1.layout_module_generator.html ] [ resource DATA to be loaded: {{resources_collate}} ] --> {% endif %} <!-- [INFO ] [j1.layout_module_generator.html ] [ start processing. collect data for region: {{resource_placement}}, layout: {{page.layout}} ] --> {% for item in items_collate %} {% assign array_name = item[0] %} {% assign array_value = item[1] %} {% assign data_type = array_value | is_type %} {% if data_type == 'array' %} {% include {{ module_writer }} region=resource_placement resources=array_value %} {% endif %} {% endfor %} <!-- [INFO ] [j1.layout_module_generator.html ] [ end processing ] -->
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
j1_template-2019.4.4 | _includes/themes/j1/layouts/layout_module_generator.html |