static Dust() { ResourceScripts.LoadScripts(typeof(Dust)); _compiledTemplates = new Dictionary <string, string>(); _templates = new Dictionary <string, DustTemplate>(); _dustRoot = DefaultConfiguration.GetAppSetting("DustRoot", _dustRoot); }
private static StringBuilder CreateBaseScript() { ResourceScripts.LoadScripts(typeof(Dust)); StringBuilder script = new StringBuilder(); script.Append(ResourceScripts.Get("json2.js")); script.Append(ResourceScripts.Get("dust.custom.js")); return(script); }
public ActionResult Js(bool min = false) { ResourceScripts.LoadScripts(typeof(Dust)); return(JavaScript(ResourceScripts.Get("dust-full-0.3.0.js", min))); }
static UrlHelperExtensions() { ResourceScripts.LoadScripts(typeof(Js.PlaceHolder)); ServiceProxySystem.Initialize(); }
public static MvcHtmlString ServiceProxyDataSet(this UrlHelper helper) { ResourceScripts.LoadScripts(typeof(DataSet)); return(GetScriptTag(helper, typeof(DataSet).Name)); }