Skip to content

Commit 4d5a5dd

Browse files
authored
Merge pull request #49 from ColdBox/copilot/fix-layout-documentation-issue
Remove non-existent `html.renderAssets()` from layout-development skill
2 parents 61ab044 + 8c2b28e commit 4d5a5dd

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

templates/ai/skills/core/coldbox/layout-development.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ Default application layout
4343

4444
<!-- CSS -->
4545
<link rel="stylesheet" href="/css/app.css">
46+
<!-- addAsset with sendToHeader=true (default) injects <link>/<script> into <head> via cfhtmlhead -->
4647
#html.addAsset( "/css/custom.css" )#
47-
48-
<!-- Head assets -->
49-
#html.renderAssets( "css" )#
48+
<!-- addAsset with sendToHeader=false outputs the tag inline at the call site instead -->
49+
#html.addAsset( asset="/css/inline.css", sendToHeader=false )#
5050
</head>
5151
<body>
5252
<!-- Header -->
@@ -65,7 +65,7 @@ Default application layout
6565

6666
<!-- JavaScript -->
6767
<script src="/js/app.js"></script>
68-
#html.renderAssets( "js" )#
68+
#html.addAsset( "/js/custom.js" )#
6969
</body>
7070
</html>
7171
</cfoutput>
@@ -85,7 +85,8 @@ Admin-specific layout
8585
<meta charset="UTF-8">
8686
<title>#prc.pageTitle ?: "Admin Dashboard"# - Admin</title>
8787
<link rel="stylesheet" href="/css/admin.css">
88-
#html.renderAssets( "css" )#
88+
<!-- addAsset injects <link> into <head> automatically via cfhtmlhead (sendToHeader=true by default) -->
89+
#html.addAsset( "/css/admin-extra.css" )#
8990
</head>
9091
<body class="admin-layout">
9192
<!-- Admin Header -->
@@ -125,7 +126,7 @@ Admin-specific layout
125126
</main>
126127

127128
<script src="/js/admin.js"></script>
128-
#html.renderAssets( "js" )#
129+
#html.addAsset( "/js/admin-extra.js" )#
129130
</body>
130131
</html>
131132
</cfoutput>

0 commit comments

Comments
 (0)