Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies and added new helpers #34

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading