mirror of
https://github.com/aelve/guide.git
synced 2024-12-24 13:26:08 +03:00
c72815c436
* Render some elements of some pages with Mustache * Switch to Stack * Add a bit of tests * Turn the project into a library
27 lines
642 B
Plaintext
27 lines
642 B
Plaintext
Description
|
|
============================================================
|
|
|
|
Item title; used when rendering an item in HTML or for the feed. (Includes the Hackage link and so on.)
|
|
|
|
Required context:
|
|
|
|
* item.link
|
|
item.name
|
|
item.kind.hackageName (optional)
|
|
|
|
|
|
HTML
|
|
============================================================
|
|
|
|
{{# item.link }}
|
|
<a href="{{item.link}}">{{item.name}}</a>
|
|
{{/ item.link }}
|
|
{{^ item.link }}
|
|
{{item.name}}
|
|
{{/ item.link }}
|
|
|
|
{{! if the item is on Hackage, let's provide a link }}
|
|
{{# item.kind.hackageName }}
|
|
(<a href="https://hackage.haskell.org/package/{{.}}">Hackage</a>)
|
|
{{/ item.kind.hackageName }}
|