After including the node_modules folder as part of my solutions I downloaded kendo- from Telerik running an command, it ended creating a folder structure like this:
node_modules
--@progress
----kendo-
------js
--------kendo.all.js
The thing is that I want to include those files as part of my HTML view.
**1-** I would like to know which is the approach if you need to include kendo.all.js in the without razor
**2-** I would like to know if exist a better way in razor than the one I am using below that allows me to use the files
@{
var kendoPath = "@progress";
}
@section Styles{
<link href="~/node_modules/@kendoPath/kendo-ui/css/web/kendo.common.min.css" rel="stylesheet" />
<link href="~/node_modules/@kendoPath/kendo-ui/css/web/kendo.default.min.css" rel="stylesheet" />
<link href="~/node_modules/@kendoPath/kendo-ui/css/web/kendo.default.mobile.min.css" rel="stylesheet" />
}
@section Scripts
{
<script src="~/node_modules/jquery/dist/jquery.min.js"></script>
<script src="~/node_modules/@kendoPath/kendo-ui/js/kendo.all.js"></script>
<script src="~/node_modules/@kendoPath/kendo-ui/js/kendo.all.js"></script>
}
node_modules
--@progress
----kendo-
------js
--------kendo.all.js
The thing is that I want to include those files as part of my HTML view.
**1-** I would like to know which is the approach if you need to include kendo.all.js in the without razor
**2-** I would like to know if exist a better way in razor than the one I am using below that allows me to use the files
@{
var kendoPath = "@progress";
}
@section Styles{
<link href="~/node_modules/@kendoPath/kendo-ui/css/web/kendo.common.min.css" rel="stylesheet" />
<link href="~/node_modules/@kendoPath/kendo-ui/css/web/kendo.default.min.css" rel="stylesheet" />
<link href="~/node_modules/@kendoPath/kendo-ui/css/web/kendo.default.mobile.min.css" rel="stylesheet" />
}
@section Scripts
{
<script src="~/node_modules/jquery/dist/jquery.min.js"></script>
<script src="~/node_modules/@kendoPath/kendo-ui/js/kendo.all.js"></script>
<script src="~/node_modules/@kendoPath/kendo-ui/js/kendo.all.js"></script>
}