Forked from MikeGrace/kynetx-use-external-resource-files.js
Created
August 11, 2010 21:02
-
-
Save edorcutt/519760 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruleset a60x295 { | |
meta { | |
name "use-external-resources" | |
description << | |
Pull in external CSS and JavaScript resources to be used by the app | |
>> | |
author "Mike Grace" | |
logging on | |
use javascript resource "http://dl.dropbox.com/u/1446072/tester.js" | |
use css resource "http://dl.dropbox.com/u/1446072/test.css" | |
} | |
dispatch { | |
domain "example.com" | |
} | |
rule first_rule is active { | |
select when pageview ".*" | |
pre { | |
html = << | |
<div id="crazy"> | |
<p>Your external CSS has loaded</p> | |
<p id="this-rocks">Woooooot!</p> | |
</div> | |
>>; | |
} | |
{ | |
append("body",html); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment