1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-04-14 23:03:16 +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:
Jeremy Ruston 2013-04-28 18:13:57 +01:00
parent 229544584b
commit 996a7279ed
2 changed files with 3 additions and 2 deletions
core/modules
themes/tiddlywiki/snowwhite

@ -90,7 +90,8 @@ exports.startup = function() {
$tw.crypto.setPassword(null);
});
// 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
var parser = $tw.wiki.parseTiddler(title),
renderTree = new $tw.WikiRenderTree(parser,{wiki: $tw.wiki});

@ -1,5 +1,5 @@
title: $:/core/styles/base
module-type: stylesheet
tags: [[$:/tags/stylesheet]]
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline
\define border-radius(radius)