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

Add JS to Preview Iframes #99

Open
am80l opened this issue Oct 16, 2013 · 1 comment
Open

Add JS to Preview Iframes #99

am80l opened this issue Oct 16, 2013 · 1 comment

Comments

@am80l
Copy link

am80l commented Oct 16, 2013

Would be a nice feature to be able to include js in the iframe includes, for components that require js to be fully functional in the preview iframes.

Could be the same way styledocco includes css:
ex:
styledocco --include bootstrap.js

@marrs
Copy link
Collaborator

marrs commented Oct 25, 2013

Thanks for the suggestion and sorry for not getting back to you sooner.

I think there is definitely merit in this as I certainly write CSS classes that are intended purely as states to be manipulated by JS.

I like the idea of attributing selectors in the comments (e.g. @requires path/to/other/stylesheet.css was discussed for dependencies). We could have a @requiresjs attribute or something similar.

If you have ideas for this that you'd like to pursue yourself, please be aware that the code is currently undergoing a rewrite and that you should develop against the dev0.7 branch.

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

2 participants