Assets

All builded files are placed inside wwwroot/assets folder and you can include your static js, css and media files in wwwroot folder then these files can be loaded globally or separately for your views.

Add Javascript File:

KTTheme.AddJavascriptFile("/assets/js/custom/intro.js");

Add Css Files:

KTTheme.AddCssFile("/assets/css/custom/intro.css");

Add Vendors:

KTTheme.AddVendors(new string[] {"datatables", "formrepeater"});

Add Vendor File:

KTTheme.AddVendor("datatables");

Global files can be added inside _keenthemes/BootstrapBase.cs.

KTTheme.AddVendor("datatables");
KTTheme.AddJavascriptFile("/assets/js/custom/intro.js");
KTTheme.AddVendors(new string[] {"datatables", "formrepeater"});

You can load a file for separate view inside your page view razor file.

@{
  KTTheme.AddJavascriptFile("/js/site.js");
}
Preview Get Help Buy Now