Hi Danielo > I think I'm on the correct way. I registered one module this way:
The deserializers that are in boot.js are needed in order to parse tiddler files, which is why they are built-in by the $tw.modules.define calls. Since yours is a component that isn't needed during the boot process itself you'd be better off defining each tiddlerdeserializer module as a separate tiddler module (ie with the moduletype field set to tiddlerdeserializer). Best wishes Jeremy. On Sat, Jan 31, 2015 at 7:30 PM, Danielo Rodríguez <[email protected]> wrote: > > I think I'm on the correct way. I registered one module this way: > > $tw.utils.registerFileType("text/shell-script","utf8",".sh",{deserializerType:"text/shell"}); > $tw.utils.each(deserializerDefinitions,function(deserializer){ > $tw.modules.define(deserializer.name > ,"tiddlerdeserializer",deserializer.definition); > }); > // Register again the modules > > $tw.modules.applyMethods("tiddlerdeserializer",$tw.Wiki.tiddlerDeserializerModules); > > > I don't know if the last sentence is correct. One thing that I don't > understand is if I open a developers console and I look into the > $tw.Wiki.tiddlerDeserializerModules > object I can't see my deserializer. Why? > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWikiDev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/tiddlywikidev. > For more options, visit https://groups.google.com/d/optout. > -- Jeremy Ruston mailto:[email protected] -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywikidev. For more options, visit https://groups.google.com/d/optout.
