Bringing in the Dates.js is reasonably expected. Unfortunately the date formatting is dependent on Lingo.js, and the date formatting is used by a number of macros, so we have a fairly strong dependency on Lingo.js.
One way of improving things (from the perspective of twikifier) would be to split off the date formatting strings into a separate .js file - unfortunately this would mean those running non-English language versions of TiddlyWiki would have to deal with multiple language files - a price I think is too high. And there's no guarantee that other dependencies on Lingo.js would not show up in future. So it looks like we are stuck with the dependency on Lingo.js. Martin On 17 January 2011 09:58, <[email protected]> wrote: > On Thu, 13 Jan 2011, Martin Budden wrote: > >>> From your list of dependencies: >> >> BasicTypes.js Strings.js Config.js Lingo.js Dom.js FormatterHelpers.js >> Formatter.js Tiddler.js TiddlyWiki.js Utilities.js Wikifier.js >> Macros.js >> >> I think it should be straightforward to remove Dom.js and Lingo.js. > > I did some further work that resulted in needing to bring Lingo.js > back in. I also had to add TiddlerFields.js and Dates.js. > > Those latter two are necessary for the timeline (at least) macro to > work. > > I also had to include a copy of addClass from Dom.js in the framing > code. > > Please see: > https://github.com/cdent/twikifier/commit/e643e5153585f8160ad0e6138b6139de7a2c64behttps://github.com/cdent/twikifier/commit/c5ad569202bc3d1578e636243d5cfd4b044cc464 > > -- > Chris Dent http://burningchrome.com/ > [...] > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWikiDev" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/tiddlywikidev?hl=en. > > -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tiddlywikidev?hl=en.
