Replies: 1 comment 2 replies
-
|
Hi @tnhirst, I think there is currently a bug in the template loader and using custom templates is currently broken. What are you trying to change in your customization? If it's something that could be useful in general, I might just add it to the default template. Up until your question here, I thought nobody was using custom templates yet and I was actually considering to remove scriban and templates altogether, as it currently causes more headaches than actual value (for my personal use cases). |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I think this is great little tool, kudos and thanks to @oocx for creating it!
I'm trying to customise the existing template a bit, so I have started by copying over all files in the
src/Oocx.TfPlan2Md/MarkdownGeneration/Templatesfolder to my own local folder and attempted to run withdocker run -v .:/data oocx/tfplan2md /data/tfplan.json --template /data/default.sbnbut I get the error
Error rendering template: /data/default.sbn(1,4) : error : Template 'data/_header.sbn' not found.I have a copy of the header template alongside thedefault.sbnthat gets mounted to the/datafolder. Am I right in thinking this is an issue with the path that Scriban is trying to find the header template? I notice from the error message that it is looking indata/_header.sbnwhich I assume is trying to read from/app/data/_header.sbnrather than/data/_header.sbn.Am I doing something wrong, is this a limitation in using tfplan2md from the docker image where you need to mount your data to an absolute location? I did try mounting my local working directory to the docker image's
/app/databut got the same error - it seemed to find the top level template I was using, but that in turn isn't able to find the other templates to include. I also tried updating the include statements to absolute paths, with the same result - Scriban still reported not finding the header atdata/_header.sbneven as I specified/data/_header.sbnBeta Was this translation helpful? Give feedback.
All reactions