On Thursday, May 21, 2015 at 11:23:33 PM UTC+1, Danielo Rodríguez wrote:
>
>
>
> El jueves, 21 de mayo de 2015, 13:37:24 (UTC+2), BJ escribió:
>>
>> seems to work
>
>
> What seems to work? 
>


   1. copy core to plugins/bj/corenew
   2. in plugin.info set "plugin-type" to "plugin-browser"
   3. have a maco  to change corenew "plugin-type" to "plugin"
   exports.name = "changecore"; exports.params = [ ]; /* Run the macro */ 
   exports.run = function() { var tiddler = 
   $tw.wiki.getTiddler("$:/plugins/bj/corenew"), updateFields = { title: 
   "$:/plugins/bj/corenew" }; updateFields["plugin-type"] = "plugin"; 
   $tw.wiki.addTiddler(new 
   
$tw.Tiddler($tw.wiki.getCreationFields(),tiddler,updateFields,$tw.wiki.getModificationFields()))
 
   } })(); 
   4. have a template to remove core and call macro 
   \define saveTiddlerFilter() [is[tiddler]] -[prefix[$:/state/popup/]] 
   -[[$:/HistoryList]] -[[$:/boot/boot.css]] 
   -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] 
   -[[$:/boot/bootprefix.js]] +[sort[title]] -[[$:/core]] \end <<changecore>> 
   {{$:/core/templates/tiddlywiki5.html}} 
   5. build using this new macro from nodejs
   
 cheers
BJ

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/52707249-975d-4c01-b35b-9ca732d98490%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to