Skip to content
This repository has been archived by the owner on May 17, 2018. It is now read-only.

Allow scripts in browser preview. #115

Merged
merged 3 commits into from
Aug 12, 2013

Conversation

henrahmagix
Copy link
Contributor

This allows a single script or array of scripts, each as a filepath or url, to be loaded into the HTML.

If the script is a filepath, it will be loaded inline via load_utf8(), otherwise it will become the src attribute of the resultant script tag. This helps avoid cross-origin behaviours and requires less setup to get scripts working.

My python's not the best, but I tried to be consistent with the style.

@xpol
Copy link
Contributor

xpol commented Aug 12, 2013

It looks great. Would you please upgrade the MarkdownPreview.sublime-settings with "js" and add related comments on how to use the "js" settings.

@henrahmagix
Copy link
Contributor Author

@xpol Done, thanks =)

xpol added a commit that referenced this pull request Aug 12, 2013
@xpol xpol merged commit 456a546 into revolunet:master Aug 12, 2013
@xpol
Copy link
Contributor

xpol commented Aug 12, 2013

Great thanks!

@henrahmagix henrahmagix deleted the allow-scripts-in-preview branch August 12, 2013 08:52
xpol added a commit that referenced this pull request Aug 12, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants