Skip to content

Instantly share code, notes, and snippets.

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