Sha256: e431d78b343d4da38e85dd2e593b2f46921c840e336ed5c4ee7f9c9906ab6fea
Contents?: true
Size: 2 KB
Versions: 26
Compression:
Stored size: 2 KB
Contents
{% comment %} # ----------------------------------------------------------------------------- # ~/_includes/themes/j1/layouts/layout_module_generator.html # Liquid template to generate all Javascript init scripts defined # for a layout # # Product/Info: # https://jekyll.one # # Copyright (C) 2020 Juergen Adams # # J1 Template is licensed under the MIT License. # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE # ----------------------------------------------------------------------------- # Test data: # liquid_var: {{ liquid_var | debug }} # ----------------------------------------------------------------------------- {% endcomment %} {% comment %} Liquid procedures -------------------------------------------------------------------------------- {% endcomment %} {% capture module_writer %}themes/{{site.template.name}}/procedures/layouts/module_writer.proc{% endcapture %} {% comment %} Variables -------------------------------------------------------------------------------- {% endcomment %} {% assign region = include.region %} {% assign globals = site.data.resources.globals %} {% assign items = site.data.resources.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: {{region}}, layout: {{page.layout}} ] --> {% for item in items %} {% for element in item %} {% if element[0] == 'resource' %} {% assign resource = element[1] %} <!-- [INFO ] [j1.layout_module_generator.html ] [ process resource: {{resource.id}} ] --> {% include {{module_writer}} region=region global=globals resource=resource %} {% endif %} {% endfor %} {% endfor %} <!-- [INFO ] [j1.layout_module_generator.html ] [ end processing ] -->
Version data entries
26 entries across 26 versions & 1 rubygems