module(..., package.seeall)

actions = {}

local jquery = require("sputnik.javascript.jquery")
local modernizr = require("sputnik.javascript.jquery")

actions.js = function(page, params, sputnik)
   return page.content, "text/javascript"
end

actions.configured_js = function(page, params, sputnik)
   sputnik.config.jquery = jquery.js
   sputnik.config.modernizr = modernizr.js
   sputnik.config.more_javascript = sputnik.config.MORE_JAVASCRIPT or ""
   return cosmo.fill(page.content, sputnik.config), "text/javascript"
end


