[tw5] Re: Using/allowing script tags for static file rendering

2020-10-01 Thread Donald Coates
SOLUTION/WORKAROUND WARNING: this requires changing a core tiddler. The code is there for a reason. My use case is very specific in that I will only be doing this on a wiki that runs just to render static tiddlers. I noticed that the rendering process for the

[tw5] Re: Using/allowing script tags for static file rendering

2020-10-01 Thread Donald Coates
Thanks Tones I have been thinking of a way to incorporate this transclusion with templates along the lines of the example given where a line of text is run through at template: `{{Transclusion||$:/core/ui/TagTemplate}}` . I have found a work around but I would rather use something like this

[tw5] Re: Using/allowing script tags for static file rendering

2020-10-01 Thread Donald Coates
Thank you Joshua! Though I am not sure it applies to the extremely specific github gist embed case, this is really useful info for the building of templates and will be very handy going forward. Thank you!! On Wednesday, September 30, 2020 at 7:18:10 PM UTC-4 joshua@gmail.com wrote: >

[tw5] Re: Using/allowing script tags for static file rendering

2020-09-30 Thread TW Tones
Donald, If you look inside $:/core/templates/static.template.html you can see how the template currently does it in two ways in fact for styles; {{$:/boot/boot.css||$:/core/templates/css-tiddler}} {{$:/core/ui/PageStylesheet||$:/core/templates/wikified-tiddler}} Notice how its setting

[tw5] Re: Using/allowing script tags for static file rendering

2020-09-30 Thread Joshua Fontany
Tiddlywiki always "breaks" script tags rendered inside tiddlers displayed in the story-river and most translcusions as a security measure. If you need the script included in the header portion of the HTML template used to render the whole page, tag the tiddler with "$:/tags/RawMarkup". This

[tw5] Re: Using/allowing script tags for static file rendering

2020-09-30 Thread Donald Coates
It is possible to have a tiddler with a

[tw5] Re: Using/allowing script tags for static file rendering

2020-09-29 Thread TW Tones
Donald, I personally see no reason why not. TiddlyWiki itself uses raw system tags for a similar purpose. Includes insertion head/body etc... Which you could clone for scrips and styles. You will need to modify the