Fix #2488 - add ability to include inline script resource definitions in modules and themes

This commit is contained in:
Shaun Walker
2022-11-12 10:58:58 -05:00
parent 075a09f0df
commit 424950bd3e
3 changed files with 30 additions and 7 deletions

View File

@ -38,7 +38,7 @@ namespace Oqtane.Models
public string CrossOrigin { get; set; }
/// <summary>
/// Bundle ID in case this Resource belongs to a set of Resources, which may have already been loaded using LoadJS
/// For Scripts a Bundle can be used to identify dependencies and ordering in the script loading process
/// </summary>
public string Bundle { get; set; }
@ -57,6 +57,11 @@ namespace Oqtane.Models
/// </summary>
public bool ES6Module { get; set; }
/// <summary>
/// Allows specification of inline script - not applicable to Stylesheets
/// </summary>
public string Content { get; set; }
[Obsolete("ResourceDeclaration is deprecated", false)]
public ResourceDeclaration Declaration { get; set; }