Hi Sebastian, 

I didn't test the lib!

I'm not sure, how you intend to use / call the chartist functions. .. But 
if you want to access the API within a TW file, you'll need to follow a 
specific pattern. 
So TW will be able to use the lib with node _and_ within a file TW. 

It seems chartist has a dist directory at github. That should make it 
easy.  https://github.com/gionkunz/chartist-js/tree/develop/dist

You only need to include chartist.min.js and chartist.css (I'd go with the 
human readable CSS)since it seems there are no other dependencies, which is 
nice!

If you have a closer look at the TW plugin zlib: 
https://github.com/Jermolene/TiddlyWiki5/tree/master/plugins/tiddlywiki/jszip 


It contains a "files" subdirectory, which list the 3rd party files. .. your 
config should be very similar. Have a close look at tiddlywiki.files

You also need the plugins.info, that is needed, so TW can extract and load 
the library. 

If you look at startup.js in the jszip lib, you'll see, how the 3rd party 
lib can be accessed as a TW plugin. It's as simple as calling require().

If you can be more specific, what you want to achieve, it would be easier 
to help. 

Hope that helps for the beginning. 

-mario


-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e71f47a4-9763-42f5-8745-f388da40720ao%40googlegroups.com.

Reply via email to