UtilitiesHere is what you do to simple JQuery-enable your web pages served as Acre templates:
<acre:script>
var t = acre.require("/freebase/libs/jquery/templates");
</acre:script>
<html>
<head>
<title>whatever</title>
${t.jquery()} <!-- tell browser to load jquery -->
${t.jquery_ui('smoothness')} <!-- tell browser to load jquery UI with the given theme (and all required css files) -->
${t.jquery_plugin('cookie')} <!-- tell browser to load a jquery plugin -->
${t.underscore()} <!-- tell browser to load underscore -->
</head>
<body>
...
</body>
</html>
canvastable dynamicNote: as a convenience, this library is capable of following dependencies, meaning that if you load jquery_ui
or other plugins that depend on jquery, you don't have to specify to load
jquery explicitly, it will be loaded automatically.