Skip to content

Commit 025ee62

Browse files
authored
Merge pull request composer#380 from mpaepper/master
Added possibility to view the keywords as specified in composer.json file
2 parents f5899dd + 834e432 commit 025ee62

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/Builder/WebBuilder.php

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public function dump(array $packages)
5656
'name' => $name,
5757
'url' => $this->rootPackage->getHomepage(),
5858
'description' => $this->rootPackage->getDescription(),
59+
'keywords' => $this->rootPackage->getKeywords(),
5960
'packages' => $mappedPackages,
6061
'dependencies' => $this->dependencies,
6162
]);

views/package.html.twig

+7
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929
{% if package.highest.description %}
3030
<p class="lead">{{ package.highest.description }}</p>
3131
{% endif %}
32+
33+
{% if package.highest.keywords %}
34+
<div class="row">
35+
<div class="col-xs-2 text-xs-left text-sm-right"><strong>Keywords</strong></div>
36+
<div class="col-xs-12 col-sm-10">{{ package.highest.keywords|join(', ') }}</div>
37+
</div>
38+
{% endif %}
3239

3340
{% if package.highest.homepage %}
3441
<div class="row">

0 commit comments

Comments
 (0)