Created
August 10, 2010 22:27
-
-
Save MikeGrace/518128 to your computer and use it in GitHub Desktop.
Use external resource files in your Kynetx apps!
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