-
Notifications
You must be signed in to change notification settings - Fork 4
Assets
Andrew Bullock edited this page Jun 2, 2018
·
9 revisions
Assets are css, javascript, images etc that are used by an Area of your Application.
Assets need to live in following folder structure:
~/areas/area-name/assets/styles
~/areas/area-name/assets/scripts
~/areas/area-name/assets/images
Assets are specific to each area, if different parts of your Application do not need different styles and scripts (broadly speaking, we don't mean page-specific here) then you only need a single Area.
To include styles and scripts within your page, use this syntax:
<script type="text/javascript" src="/@Url.AssetName(AssetFormat.Js)"></script>
<link rel="stylesheet" type="text/css" href="/@Url.AssetName(AssetFormat.Css)"/>
TODO