Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow including .js files? #163

Open
tornewuff opened this issue Jul 26, 2014 · 2 comments
Open

Allow including .js files? #163

tornewuff opened this issue Jul 26, 2014 · 2 comments

Comments

@tornewuff
Copy link

It'd be really nice if StoryIncludes could reference a .js file and include it either as a <script> tag or a passage tagged with 'script' - this would make it much easier to write/build JS code externally without having to wrap it up as twee (which confuses a lot of JS tools).

@greyelf
Copy link
Contributor

greyelf commented Jul 31, 2014

It might make more sense if the contents of the referenced js file was embedded within the head section of the html file, similar to what is currently done with the engine.js, jquery.js, and modernizr.js files.

@tornewuff
Copy link
Author

Yeah, that's what I meant by a <script> tag, though if it was done that way, would the included JS be able to access the header's variables? e.g. to define macros? Those aren't necessarily global...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants