-
Notifications
You must be signed in to change notification settings - Fork 443
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: expose integer Tutor version parts to templates
- Loading branch information
1 parent
7042414
commit ee9b065
Showing
2 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- [Feature] Add three new variables to the template context as a convenience to developers who need to maintain version-aware plugins (by @michaelwheeler): | ||
* `TUTOR_VERSION_MAJOR` | ||
* `TUTOR_VERSION_MINOR` | ||
* `TUTOR_VERSION_PATCH` | ||
These correspond to the existing `TUTOR_VERSION` string variable, which takes the format `"MAJOR.MINOR.PATCH"`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters