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:
Jermolene 2016-06-23 16:29:51 +01:00
parent 3d5885f5a5
commit e8e9759816
2 changed files with 8 additions and 0 deletions

View 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" />

View File

@ -1,6 +1,7 @@
title: $:/core/templates/static.area
<$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}}
</$reveal>
<$reveal type="match" state="$:/isEncrypted" text="yes">