Sha256: f735a1124acf9c1c892a117df4426448d5971b8af8c28dd2cd56cca173ad7f29
Contents?: true
Size: 2 KB
Versions: 5
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) 2023, 2024 Juergen Adams # # J1 Template is licensed under the MIT License. # See: https://github.com/jekyll-one-org/j1-template/blob/main/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
5 entries across 5 versions & 1 rubygems