seedstack / website

SeedStack website source.
http://seedstack.org
Creative Commons Attribution Share Alike 4.0 International
4 stars 17 forks source link

Display build compatibility (applications servers) #27

Closed tbouvet closed 9 years ago

tbouvet commented 9 years ago

After each build, a new json file is generated to show compatibility with different applications servers (tomcat, websphere liberty, ...) The goal is to display the result in the web site. Json example:

{"Name":"applicationServer","Servers":[{"Name":"tomcat","Result":"SUCCESS"}]}

Hugo shortcodes example:

<ul>
    {{ $url := .Get 0 }}
    {{ range $index,$element := getJSON $url }}
    {{ if eq $index "Servers" }}
        {{ range $element }}
        <li>{{ upper .Name }} : <strong>{{ .Result }}</strong></li>
        {{ end }}
    {{ end }}

    {{ end }}
</ul>