Skip to content

Instantly share code, notes, and snippets.

@ericf
Created December 7, 2010 21:38
Show Gist options
  • Select an option

  • Save ericf/732461 to your computer and use it in GitHub Desktop.

Select an option

Save ericf/732461 to your computer and use it in GitHub Desktop.
protected void renderYUI3Seed(HtmlContentWriter container) throws IOException {
this.renderYUI3Seed(container, true);
}
protected void renderYUI3Seed(HtmlContentWriter container, boolean includeModuleMetadata) throws IOException {
if (includeModuleMetadata)
this.renderYUI3Seed(container, includeModuleMetadata, isDebug ? YUI3_DEBUG_SEED_WITH_METADATA : YUI3_SEED_WITH_METADATA);
else
this.renderYUI3Seed(container, includeModuleMetadata, isDebug ? YUI3_DEBUG_SEED : YUI3_SEED);
}
protected void renderYUI3Seed(HtmlContentWriter container, boolean includeModuleMetadata, String...seed) throws IOException {
container.script(TYPE_TEXT_JAVASCRIPT, src(getWebutils().getLocation(seed)));
if (includeModuleMetadata) {
container.script(TYPE_TEXT_JAVASCRIPT, src(getResources().getLocation(YUI_CONFIG)));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment