mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Add more flexible support for static content
Passing the static content through the `$:/core/templates/html-tiddler` template made it impossible to produce output that wasn’t HTML encoded (eg stylesheets).
This commit is contained in:
parent
3d5885f5a5
commit
e8e9759816
7
core/templates/raw-static-tiddler.tid
Normal file
7
core/templates/raw-static-tiddler.tid
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
title: $:/core/templates/raw-static-tiddler
|
||||||
|
|
||||||
|
<!--
|
||||||
|
|
||||||
|
This template is used for saving tiddlers as static HTML
|
||||||
|
|
||||||
|
--><$view field="text" format="plainwikified" />
|
@ -1,6 +1,7 @@
|
|||||||
title: $:/core/templates/static.area
|
title: $:/core/templates/static.area
|
||||||
|
|
||||||
<$reveal type="nomatch" state="$:/isEncrypted" text="yes">
|
<$reveal type="nomatch" state="$:/isEncrypted" text="yes">
|
||||||
|
{{{ [all[shadows+tiddlers]tag[$:/tags/RawStaticContent]!has[draft.of]] ||$:/core/templates/raw-static-tiddler}}}
|
||||||
{{$:/core/templates/static.content||$:/core/templates/html-tiddler}}
|
{{$:/core/templates/static.content||$:/core/templates/html-tiddler}}
|
||||||
</$reveal>
|
</$reveal>
|
||||||
<$reveal type="match" state="$:/isEncrypted" text="yes">
|
<$reveal type="match" state="$:/isEncrypted" text="yes">
|
||||||
|
Loading…
Reference in New Issue
Block a user