Subtext.Framework.UI.Skinning.ScriptElementCollectionRenderer.RenderScriptElement C# (CSharp) Method

RenderScriptElement() public static method

public static RenderScriptElement ( string skinPath, Script script ) : string
skinPath string
script Script
return string
        public static string RenderScriptElement(string skinPath, Script script)
        {
            return "<script" +
                   RenderScriptAttribute("type", script.Type) +
                   RenderScriptAttribute("src", GetScriptSourcePath(skinPath, script)) +
                   RenderScriptAttribute("defer", script.Defer ? "defer" : null) +
                   "></script>" + Environment.NewLine;
        }

Same methods

ScriptElementCollectionRenderer::RenderScriptElement ( string scriptPath ) : string