Skip to content

Commit e30d180

Browse files
committed
Add support for {asset} and n:asset (closes #9)
1 parent fab3374 commit e30d180

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [1.4.1] - 2025-07-05
4+
5+
### Added
6+
7+
- Support for {asset} and n:asset
8+
39
## [1.4.0] - 2025-04-07
410

511
### Added

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pluginGroup = org.nette.latte
44
pluginName = Latte Support
55
pluginRepositoryUrl = https://github.com/Rixafy/LatteSupport
66
# SemVer format -> https://semver.org
7-
pluginVersion = 1.4.0
7+
pluginVersion = 1.4.1
88

99
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
1010
pluginSinceBuild = 222

src/main/java/org/nette/latte/config/LatteDefaultConfiguration.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ private void loadDefaults() {
6363
loadDefaultNetteApplicationVariables();
6464

6565
loadDefaultNetteFormsTags();
66+
loadDefaultNetteAssetsTags();
6667
}
6768

6869
private void loadDefaultLatteTags() {
@@ -227,6 +228,10 @@ private void loadDefaultNetteFormsTags() {
227228
addFormsTag(tag("name", LatteTagSettings.Type.ATTR_ONLY, requiredArgument("name", "string", LatteArgumentSettings.Type.PHP_IDENTIFIER, LatteArgumentSettings.Type.VARIABLE, LatteArgumentSettings.Type.CONTROL, LatteArgumentSettings.Type.PHP_EXPRESSION)));
228229
}
229230

231+
private void loadDefaultNetteAssetsTags() {
232+
addNetteTag(tag("asset", LatteTagSettings.Type.UNPAIRED_ATTR, requiredArgument("name", "string", LatteArgumentSettings.Type.PHP_IDENTIFIER, LatteArgumentSettings.Type.VARIABLE, LatteArgumentSettings.Type.PHP_EXPRESSION)));
233+
}
234+
230235
private void addLatteTag(LatteTagSettings tag) {
231236
addTag(LatteConfiguration.Vendor.LATTE, tag);
232237
}

0 commit comments

Comments
 (0)