Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Commit

Permalink
✨ support for content representations
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Meilick <b@bnomei.com>
  • Loading branch information
bnomei committed Feb 22, 2020
1 parent ceacf8a commit 2933372
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion classes/HandlebarsTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,13 @@ public function extension(): string
*/
public function file(): string
{
$name = $this->name();
if ($this->hasDefaultType() !== $this->type()) {
$name = $this->name() . '.' . $this->type();
}

$file = $this->handlebars->file(
$this->name()
$name
);
return $file;
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bnomei/kirby3-handlebars",
"type": "kirby-plugin",
"version": "3.2.3",
"version": "3.2.4",
"license": "MIT",
"description": "Kirby 3 Component for semantic templates with Handlebars and Mustache",
"authors": [
Expand Down

0 comments on commit 2933372

Please sign in to comment.