protected FunctionSpec Function([CallerMemberName] string functionName = null)
 {
     return
         (new FunctionSpec(
              new Lazy <string>(
                  () => SectionJsReader.ReadJsFromResources(functionName, "", GetType()))));
 }
 protected static FunctionSpec SectionPart(string functionName, string partNamespace)
 {
     return
         (new FunctionSpec(
              new Lazy <string>(
                  () => SectionJsReader.ReadJsFromResources(functionName, partNamespace, typeof(TSelf)))));
 }
 private static string ReadJsFromResources(string baseName, Type viewsType)
 {
     return(SectionJsReader.ReadJsFromResources(baseName, "Indexes", viewsType));
 }