The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

HomeAreaRegistration.cs 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System.Collections.Generic;
  2. using System.Web.Mvc;
  3. using System.Web.Optimization;
  4. using Teknik;
  5. namespace Teknik.Areas.Home
  6. {
  7. public class HomeAreaRegistration : AreaRegistration
  8. {
  9. public override string AreaName
  10. {
  11. get
  12. {
  13. return "Home";
  14. }
  15. }
  16. public override void RegisterArea(AreaRegistrationContext context)
  17. {
  18. context.MapSubdomainRoute(
  19. "Home.Index", // Route name
  20. new List<string>() { "dev", "www", string.Empty }, // Subdomains
  21. "", // URL with parameters
  22. new { controller = "Home", action = "Index" }, // Parameter defaults
  23. new[] { typeof(Controllers.HomeController).Namespace }
  24. );
  25. // Register Style Bundles
  26. BundleTable.Bundles.Add(new StyleBundle("~/Content/home").Include(
  27. "~/Areas/Home/Content/Home.css"));
  28. // Register Script Bundles
  29. BundleTable.Bundles.Add(new ScriptBundle("~/bundles/home").Include(
  30. "~/Scripts/PageDown/Markdown.Converter.js",
  31. "~/Scripts/PageDown/Markdown.Sanitizer.js"));
  32. }
  33. }
  34. }