FHIR Chat · Template syntax ? · shorthand

Stream: shorthand

Topic: Template syntax ?


view this post on Zulip Janaka Peiris (Jun 23 2021 at 10:13):

1) I've seen this syntax in some IG page content XML files ( <IG root>/input/includes/*.xml). Is there any documentation on what kind of syntax (I assume its Jekyll) and objects are supported?

    {% for sd_hash in site.data.structuredefinitions -%}
        {%- assign sd = sd_hash[1] -%}
        {%- if sd.kind  == "complex-type" and sd.type != "Extension" -%}
        <li>
            <a href="{{sd.path}}">{{sd.name}}</a>{{sd.title}}
        </li>
        {%- endif -%}
    {%- endfor -%}

2) Also noted that some pages are automatically generated from the IG template (eg: artifacts.html). Where can I find these files, and how can I override it ?

view this post on Zulip Chris Moesel (Jun 23 2021 at 13:41):

Since this is related more to the IG publishing and templating framework, it might be better to ask over in #IG creation -- but I know @Jose Costa Teixeira is hanging out over here in #shorthand too, so he can probably help you.

view this post on Zulip Jose Costa Teixeira (Jun 23 2021 at 18:29):

The artifacts page is generated by some xslt

view this post on Zulip Jose Costa Teixeira (Jun 23 2021 at 18:30):

As for the Jekyll variables, it is the Jekyll syntax for using data files

view this post on Zulip Jose Costa Teixeira (Jun 23 2021 at 18:30):

She you build the IG you have a temp folder, and in there you have a data folder

view this post on Zulip Jose Costa Teixeira (Jun 23 2021 at 18:30):

Those jsons are your data files

view this post on Zulip Janaka Peiris (Jun 25 2021 at 05:55):

Thanks @Chris Moesel . I didnt know of that #IG creation stream. Will pos the quesiton there.


Last updated: Apr 12 2022 at 19:14 UTC