FHIR Chat · home grown html · shorthand

Stream: shorthand

Topic: home grown html


view this post on Zulip Nathan Davis (Jan 12 2022 at 20:28):

I have in my IG many html files that I include in the markdown files that I use for each of my profiles. Most of these html files define tables and other similar objects. Where in the FSH file structure would I put these?

view this post on Zulip David Pyke (Jan 12 2022 at 21:29):

Input/pagecontent

view this post on Zulip Nathan Davis (Jan 12 2022 at 21:46):

Okay, I tried putting them in that folder. I get a warning that there are files that do not match the .md or .xml format and therefore will not be processed. Also, I get a publishing error that the subsequent processed files are not in the temp/pages/_includes folder. do I need an includes folder in the input folder? Maybe input/pagecontent/_includes?

view this post on Zulip Chris Moesel (Jan 12 2022 at 21:52):

@Eric Haas or @Jose Costa Teixeira might have some specific guidance. They're pretty familiar w/ the way that the templating works w/ IG Publisher. If putting them into input/pagecontent is indeed the right thing to do, we can relax that warning message in SUSHI.

view this post on Zulip Jose Costa Teixeira (Jan 12 2022 at 21:53):

So you include the content of one file in a page?

view this post on Zulip Jose Costa Teixeira (Jan 12 2022 at 21:54):

@Nathan Davis is that what you want to do?

view this post on Zulip Jose Costa Teixeira (Jan 12 2022 at 21:54):

(As in Jekyll include ?)

view this post on Zulip Nathan Davis (Jan 12 2022 at 21:55):

@Jose Costa Teixeira Yes. Like so....(snippet from a .md page file)

#### *Value Sets*

{% include AvgBPValueSets.html %}

view this post on Zulip Nathan Davis (Jan 12 2022 at 21:58):

Mostly the html that I want to "include" in the markdown files are tables. I know I can create tables in the markdown directly but I'd rather not have to re-do all that work.

view this post on Zulip Jose Costa Teixeira (Jan 12 2022 at 22:23):

Right. I am not sure that would work

view this post on Zulip Jose Costa Teixeira (Jan 12 2022 at 22:24):

Did you try to put those html files in the input/images folder?

view this post on Zulip Nathan Davis (Jan 12 2022 at 22:27):

No, but I'll try now.

view this post on Zulip Nathan Davis (Jan 12 2022 at 22:52):

Well, that didn't work either.

view this post on Zulip David Pyke (Jan 13 2022 at 15:24):

You can just copy the html into the md file directly. You don't have to include it. The kramdown parser just leaves it intact.

view this post on Zulip Eric Haas (Jan 14 2022 at 01:36):

I would rename them and md files and put in the includes folder. the then they invoked as above.

view this post on Zulip Nathan Davis (Jan 14 2022 at 17:02):

Thank you all for your help! I decided to just copy the html into the md file as David suggested. it was the easiest route.


Last updated: Apr 12 2022 at 19:14 UTC