Skip to content

Commit

Permalink
feat: html concept templates
Browse files Browse the repository at this point in the history
  • Loading branch information
alandefreitas committed Nov 8, 2024
1 parent 62f361f commit 9dd2f6d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{>template-head symbol.template}}

concept {{>declarator-id symbol}} = {{symbol.constraint}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{{!-- concept --}}
<div id="{{symbol.id}}">
<div>
<h2>{{>nested-name-specifier symbol=symbol.parent includeNamespace=true}}{{symbol.name}}</h2>
{{symbol.doc.brief}}
</div>
<div>
<h3>Synopsis</h3>
<div>
<code>
{{>source dcl=(primary_location symbol)}}
</code>
</div>
<pre class="source-code cpp">
{{>signature/concept symbol=symbol}};
</pre>
</div>
{{#if symbol.doc.description}}
<div>
<h3>Description</h3>
{{symbol.doc.description}}
</div>
{{/if}}
{{#if symbol.doc.see}}
<div>
<h3>See Also</h3>
{{#each symbol.doc.see}}
<p>{{.}}</p>
{{/each}}
</div>
{{/if}}
</div>

0 comments on commit 9dd2f6d

Please sign in to comment.