mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-07 22:33:50 +00:00
Switch to using tags to identify stylesheets
Using module-type was confusing, because we weren't actually using the module infrastructure for stylesheet processing.
This commit is contained in:
parent
229544584b
commit
996a7279ed
@ -90,7 +90,8 @@ exports.startup = function() {
|
|||||||
$tw.crypto.setPassword(null);
|
$tw.crypto.setPassword(null);
|
||||||
});
|
});
|
||||||
// Apply stylesheets
|
// Apply stylesheets
|
||||||
$tw.utils.each($tw.modules.types.stylesheet,function(moduleInfo,title) {
|
var stylesheetTiddlers = $tw.wiki.filterTiddlers("[tag[$:/tags/stylesheet]]");
|
||||||
|
$tw.utils.each(stylesheetTiddlers,function(title,index) {
|
||||||
// Stylesheets don't refresh, yet
|
// Stylesheets don't refresh, yet
|
||||||
var parser = $tw.wiki.parseTiddler(title),
|
var parser = $tw.wiki.parseTiddler(title),
|
||||||
renderTree = new $tw.WikiRenderTree(parser,{wiki: $tw.wiki});
|
renderTree = new $tw.WikiRenderTree(parser,{wiki: $tw.wiki});
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
title: $:/core/styles/base
|
title: $:/core/styles/base
|
||||||
module-type: stylesheet
|
tags: [[$:/tags/stylesheet]]
|
||||||
|
|
||||||
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline
|
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline
|
||||||
\define border-radius(radius)
|
\define border-radius(radius)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user