private static void EnsureTemplatesAreLoaded()
        {
            Args.ThrowIf(HandlebarsDirectory == null && HandlebarsEmbeddedResources == null, "Must specify at least one of Handlebars.HandlebarsDirectory or Handlebars.EmbeddedResources");
            if (HandlebarsDirectory != null && !HandlebarsDirectory.IsLoaded)
            {
                HandlebarsDirectory.Reload();
            }

            if (HandlebarsEmbeddedResources != null && !HandlebarsEmbeddedResources.IsLoaded)
            {
                HandlebarsEmbeddedResources.Reload();
            }
        }
Example #2
0
 public static string Name(int number)
 {
     Args.ThrowIf(number < 1 || number > 12, "Invalid month number specified");
     return(_months[number]);
 }