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

Enable importing urls to work around url length limits #12

Open
wizgrav opened this issue Jul 6, 2018 · 2 comments
Open

Enable importing urls to work around url length limits #12

wizgrav opened this issue Jul 6, 2018 · 2 comments

Comments

@wizgrav
Copy link

wizgrav commented Jul 6, 2018

One approach could be like Rayglider does, which performs the same function in a webgl shader context, by providing a module system for inclusion and reuse of other urls. Example here (it would be beneficial to have a decent gpu for this one)

@wizgrav wizgrav changed the title Allow for importing other urls to work around url length limits Enable importing other urls to work around url length limits Jul 6, 2018
@wizgrav wizgrav changed the title Enable importing other urls to work around url length limits Enable importing urls to work around url length limits Jul 6, 2018
@alcor
Copy link
Member

alcor commented Jul 8, 2018

How would you imagine this working (could you provide some basic syntax you would hope to see?)

@wizgrav
Copy link
Author

wizgrav commented Jul 8, 2018

I'm not sure what the optimal mechanism for html would be. I opted to add a directive and syntactic sugar for composition of shaders. like this:

#import JAR <https://tinyurl.com/y82cdk8k>

@JAR.someExternalFunction( );

In this case the contents of the imported url would be prepended as is and the sugar just makes sure there will be no conflicts.

For your case maybe just some syntax to import js scripts contained in the urls would do.

@alcor alcor added this to the post-validation milestone Jul 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants