<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Render-Hooks on Symblix Example</title>
		<link>http://symblix.lexbytes.org/en/topics/render-hooks/</link>
		<description>Recent content in Render-Hooks on Symblix Example</description>
		<generator>Hugo</generator>
		<language>en-US</language>
		
		
		
		
			<atom:link href="http://symblix.lexbytes.org/en/topics/render-hooks/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Code Blocks</title>
				<link>http://symblix.lexbytes.org/en/docs/latest/components/code-blocks/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>http://symblix.lexbytes.org/en/docs/latest/components/code-blocks/</guid>
				<description>&lt;p&gt;The code block render hook keeps examples readable in static HTML and in print.&lt;/p&gt;&#xA;&lt;h2 id=&#34;basic-example&#34;&gt;&#xA;  &lt;a class=&#34;docs-heading-anchor&#34; href=&#34;#basic-example&#34; aria-label=&#34;Link to Basic example&#34;&gt;#&lt;/a&gt;&#xA;  Basic example&#xA;&lt;/h2&gt;&#xA;&lt;figure class=&#34;docs-codeblock docs-codeblock--bash&#34;&gt;&lt;div&#xA;    class=&#34;docs-codeblock__body&#34;&#xA;    data-codeblock&#xA;    data-copy-label=&#34;Copy code&#34;&#xA;    data-copied-label=&#34;Copied&#34;&#xA;    data-copy-failed-label=&#34;Copy failed&#34;&#xA;  &gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;hugo server --source exampleSite --theme hugo-theme-symblix&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/figure&gt;&#xA;&lt;h2 id=&#34;with-metadata&#34;&gt;&#xA;  &lt;a class=&#34;docs-heading-anchor&#34; href=&#34;#with-metadata&#34; aria-label=&#34;Link to With metadata&#34;&gt;#&lt;/a&gt;&#xA;  With metadata&#xA;&lt;/h2&gt;&#xA;&lt;figure class=&#34;docs-codeblock docs-codeblock--toml&#34;&gt;&lt;div&#xA;    class=&#34;docs-codeblock__body&#34;&#xA;    data-codeblock&#xA;    data-copy-label=&#34;Copy code&#34;&#xA;    data-copied-label=&#34;Copied&#34;&#xA;    data-copy-failed-label=&#34;Copy failed&#34;&#xA;  &gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-toml&#34; data-lang=&#34;toml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;params&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;docs&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;root&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;docs&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/figure&gt;&#xA;&lt;p&gt;The render hook supports a title and filename caption through fenced-code attributes:&lt;/p&gt;&#xA;&lt;figure class=&#34;docs-codeblock docs-codeblock--toml&#34;&gt;&lt;figcaption class=&#34;docs-codeblock__header&#34;&gt;&lt;span class=&#34;docs-codeblock__title&#34;&gt;exampleSite/hugo.toml&lt;/span&gt;&lt;span class=&#34;docs-codeblock__filename&#34;&gt;exampleSite/hugo.toml&lt;/span&gt;&lt;/figcaption&gt;&lt;div&#xA;    class=&#34;docs-codeblock__body&#34;&#xA;    data-codeblock&#xA;    data-copy-label=&#34;Copy code&#34;&#xA;    data-copied-label=&#34;Copied&#34;&#xA;    data-copy-failed-label=&#34;Copy failed&#34;&#xA;  &gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-toml&#34; data-lang=&#34;toml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;params&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;nx&#34;&gt;docs&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nx&#34;&gt;root&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;docs&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/figure&gt;&#xA;&lt;h2 id=&#34;what-is-not-here&#34;&gt;&#xA;  &lt;a class=&#34;docs-heading-anchor&#34; href=&#34;#what-is-not-here&#34; aria-label=&#34;Link to What is not here&#34;&gt;#&lt;/a&gt;&#xA;  What is not here&#xA;&lt;/h2&gt;&#xA;&lt;aside class=&#34;docs-callout docs-callout--warning docs-callout-warning&#34; role=&#34;note&#34; id=&#34;warning&#34;&gt;&#xA;  &lt;div class=&#34;docs-callout__header&#34;&gt;&lt;p class=&#34;docs-callout-title&#34;&gt;Warning&lt;/p&gt;&#xA;  &lt;/div&gt;&#xA;  &lt;div class=&#34;docs-callout-body&#34;&gt;The release build does not include copy-code buttons or a JavaScript clipboard helper. The rendered HTML must remain useful without any runtime enhancement.&lt;/div&gt;&#xA;&lt;/aside&gt;</description>
			</item>
			<item>
				<title>Diagrams</title>
				<link>http://symblix.lexbytes.org/en/docs/latest/components/diagrams/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>http://symblix.lexbytes.org/en/docs/latest/components/diagrams/</guid>
				<description>&lt;p&gt;Mermaid fenced blocks are rendered to SVG &lt;strong&gt;at build time&lt;/strong&gt; by the diagram pipeline, so published pages contain plain images and stay JavaScript-free.&lt;/p&gt;&#xA;&#xA;&lt;figure class=&#34;docs-diagram&#34;&gt;&#xA;  &lt;img class=&#34;docs-diagram__image docs-diagram__image--dark&#34; src=&#34;http://symblix.lexbytes.org/diagrams/dfcc067e14a1cff6a09ceec941088cb4db1db9d7d7d5dfdfee0108024cd95cfb.dark.min.svg&#34; alt=&#34;&#34; aria-hidden=&#34;true&#34; loading=&#34;lazy&#34; decoding=&#34;async&#34;&gt;&#xA;  &lt;img class=&#34;docs-diagram__image docs-diagram__image--light&#34; src=&#34;http://symblix.lexbytes.org/diagrams/dfcc067e14a1cff6a09ceec941088cb4db1db9d7d7d5dfdfee0108024cd95cfb.min.svg&#34; alt=&#34;Diagram&#34; loading=&#34;lazy&#34; decoding=&#34;async&#34;&gt;&#xA;&lt;/figure&gt;&lt;p&gt;The pipeline hashes each block&amp;rsquo;s source, writes the SVG under &lt;code&gt;assets/diagrams/&lt;/code&gt;, and caches by hash — unchanged diagrams are never re-rendered.&lt;/p&gt;&#xA;&lt;h2 id=&#34;running-the-pipeline&#34;&gt;&#xA;  &lt;a class=&#34;docs-heading-anchor&#34; href=&#34;#running-the-pipeline&#34; aria-label=&#34;Link to Running the pipeline&#34;&gt;#&lt;/a&gt;&#xA;  Running the pipeline&#xA;&lt;/h2&gt;&#xA;&lt;figure class=&#34;docs-codeblock docs-codeblock--bash&#34;&gt;&lt;div&#xA;    class=&#34;docs-codeblock__body&#34;&#xA;    data-codeblock&#xA;    data-copy-label=&#34;Copy code&#34;&#xA;    data-copied-label=&#34;Copied&#34;&#xA;    data-copy-failed-label=&#34;Copy failed&#34;&#xA;  &gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;npm run diagrams   &lt;span class=&#34;c1&#34;&gt;# rendered by build, check, and test automatically&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/figure&gt;&#xA;&lt;p&gt;A block whose diagram has not been rendered yet falls back to a plain code block, so builds never break while you draft. Set &lt;code&gt;params.docs.mermaid.enforce = true&lt;/code&gt; to turn the fallback into a build warning (which fails &lt;code&gt;--panicOnWarning&lt;/code&gt; CI builds).&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
