mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 12:07:19 +00:00
Starting to implement cooking down the rabbithole
The idea is that rendering tiddlywiki5.template.html to text/plain will cook the TiddlyWiki HTML file
This commit is contained in:
parent
a6ea68b29a
commit
8203437a4f
23
rabbithole/core/modules/macros/serialize.js
Normal file
23
rabbithole/core/modules/macros/serialize.js
Normal file
@ -0,0 +1,23 @@
|
||||
/*\
|
||||
title: $:/core/modules/macros/serialize.js
|
||||
type: application/javascript
|
||||
module-type: macro
|
||||
|
||||
\*/
|
||||
(function(){
|
||||
|
||||
/*jslint node: true, browser: true */
|
||||
/*global $tw: false */
|
||||
"use strict";
|
||||
|
||||
exports.info = {
|
||||
name: "serialize",
|
||||
params: {}
|
||||
};
|
||||
|
||||
exports.executeMacro = function() {
|
||||
return [];
|
||||
};
|
||||
|
||||
|
||||
})();
|
@ -1,3 +1,6 @@
|
||||
title: $:/core/tiddlywiki5.template.html
|
||||
type: text/x-tiddlywiki-html
|
||||
|
||||
<<!
|
||||
|
||||
A mockup of a template for new-style generation of TiddlyWiki HTML files
|
||||
@ -17,7 +20,7 @@ A mockup of a template for new-style generation of TiddlyWiki HTML files
|
||||
<meta name="copyright" content="
|
||||
[[$:/core/copyright.txt]]
|
||||
" />
|
||||
<title>[[$:/shadows/title]]</title>
|
||||
<title><<tiddler target:$:/shadows/title>></title>
|
||||
<style id="styleArea" type="text/css">
|
||||
<<serialize filter:"[is[shadow]type[text/css]]" as:styleblock>>
|
||||
</style>
|
@ -5,7 +5,7 @@ version: core/version.txt
|
||||
jsbootstart: core/bootprefix.js
|
||||
jsbootend: core/boot.js
|
||||
|
||||
shadow: core/tiddlywiki5.template.html
|
||||
shadow: core/tiddlywiki5.template.html.tid
|
||||
title: $:/core/tiddlywiki5.template.html
|
||||
shadow: core/copyright.txt
|
||||
title: $:/core/copyright.txt
|
||||
|
@ -2,7 +2,9 @@
|
||||
|
||||
# run TiddlyWiki5
|
||||
|
||||
node ../core/boot.js --verbose --wikitest ../../test/wikitests/ --dump shadows || exit 1
|
||||
node ../core/boot.js --verbose --wikitest ../../test/wikitests/ || exit 1
|
||||
|
||||
node ../core/boot.js --verbose --savetiddler $:/core/tiddlywiki5.template.html ../tmp/tw5/rabbit.html text/plain || exit 1
|
||||
|
||||
# run jshint
|
||||
jshint ../core/*.js
|
||||
|
Loading…
Reference in New Issue
Block a user