Skip to content

Commit

Permalink
Merge pull request #34 from oyakovlev/update_dependencies_and_new_hel…
Browse files Browse the repository at this point in the history
…pers

Update dependencies and added new helpers
  • Loading branch information
Alex009 authored Sep 12, 2024
2 parents bb9cbcd + 8e8a350 commit a463744
Show file tree
Hide file tree
Showing 14 changed files with 296 additions and 165 deletions.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repositories {
}

dependencies {
implementation("dev.icerock.tools:shaper-core:0.4.0")
implementation("dev.icerock.tools:shaper-core:0.5.0")
}
```

Expand Down Expand Up @@ -221,6 +221,20 @@ globalParams:
...
{{~/if}}
```
`currentTimestamp` returns the current UNIX time, for example:
```handlebars
{{currentTimestamp}}
```
`currentDateTime` returns the current date and/or time in a specified format, for example:
```handlebars
{{currentDateTime "yyyy-MM-dd HH:mm:ss"}}
```
`renderPartial` render partial template like `{{> paramTemplate paramName="test"}}` and return it value, for example:
```handlebars
{{~#if (eq (renderPartial "paramTemplate" paramName="test") "test")}}
...
{{~/if}}
```

## License

Expand Down
2 changes: 1 addition & 1 deletion build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ repositories {
}

dependencies {
api("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20")
api("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.25")
}
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ buildscript {

subprojects {
group = "dev.icerock.tools"
version = "0.4.0"
version = "0.5.0"
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit a463744

Please sign in to comment.