document.head - refresh #8128
Replies: 4 comments 19 replies
-
Hi @BurningTreeC I think perhaps the comments would need to be in backticks so that TiddlyWiki doesn't parse them as TW comments. |
Beta Was this translation helpful? Give feedback.
-
How is $:/core/templates/tiddlywiki5.html parsed? I'd like to resemble that parsing |
Beta Was this translation helpful? Give feedback.
-
hope that helps |
Beta Was this translation helpful? Give feedback.
-
I have one question @Jermolene @pmario Do the |
Beta Was this translation helpful? Give feedback.
-
While trying to get each single Stylesheet into a single
<style>
tag I found that I can modify the $:/core/templates/tiddlywiki5.html tiddler to transclude a "HEAD template" tiddler.I then found out that I can create another "HEAD template" tiddler (it needs a slightly different form) and make a
transclude
widget inrender.js
from it and render it in the document.head section.I get all stylesheets as single
<style>
tags and can refresh the wholedocument.head
section when something changes.What I cannot achieve is getting the comments into the head section:
Is there an option for the
makeTranscludeWidget
method not to strip those comments?Or is there another way to get them into the head section?
I also didn't really find the place in the core code where the $:/core/templates/tiddlywiki5.html tiddler gets rendered.
Currently I replace the
document.head
with the new rendered head which is very clumsy.Beta Was this translation helpful? Give feedback.
All reactions