Skip to content

Commit d55133f

Browse files
authored
Merge pull request #474 from phpDocumentor/variable-today
Introduce global variable "today" and "release"
2 parents bfd026f + deb7eb0 commit d55133f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/guides/src/Nodes/ProjectNode.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ public function __construct(
4040
) {
4141
$this->addVariable('project', new PlainTextInlineNode($title ?? ''));
4242
$this->addVariable('version', new PlainTextInlineNode($version ?? ''));
43+
$this->addVariable('release', new PlainTextInlineNode($version ?? ''));
4344
$this->addVariable('last_rendered', new PlainTextInlineNode(date(DATE_RFC2822)));
45+
$this->addVariable('today', new PlainTextInlineNode(date(DATE_RFC2822)));
4446

4547
parent::__construct();
4648
}

0 commit comments

Comments
 (0)