massivedanger / protagonist

A Twine story format with power!
ISC License
33 stars 5 forks source link

Story Javascript/Stylesheet Improvements #8

Closed callym closed 8 years ago

callym commented 9 years ago

It would be nice if you could tag a passage with "storyjavascript" or "storystylesheet" and then have the contents of that passage appended to the Story Javascript/Stylesheet when compiled. And/or a "head" tag that adds the contents to the tag (for loading external JS files)

It would let you have a passage for each object, instead of one long Story Javascript that you have to search through.

Also is there a way to access the jQuery in the story javascript? I tried $ and Chrome said it was undefined.