[NPMCLI-74] Incorrect pattern in resfn call in page template Created: 18/Jan/17  Updated: 02/Feb/17  Resolved: 19/Jan/17

Status: Closed
Project: Magnolia CLI
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0

Type: Bug Priority: Neutral
Reporter: Christopher Zimmermann Assignee: Robert Kowalski
Resolution: Fixed Votes: 0
Labels: quickwin
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Sprint: Basel 79
Story Points: 1

 Description   

In mgnl-cli-prototypes/page/template.ftl the resfn pattern is incorrect. The last . would either need to be escaped or removed.
Recommend removing the last dot to keep the pattern as simple as possible.
So the patterns should be:

[#-- ${resfn.css(["__lightDevModuleFolder__/.*css"])!} --]
[#-- ${resfn.js(["__lightDevModuleFolder__/.*js"])!} --]


 Comments   
Comment by Robert Kowalski [ 18/Jan/17 ]

that fits perfectly as i was just fixing a minor issue in the comments of the template anyway.

Generated at Mon Feb 12 04:46:16 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.