Skip to content

Commit

Permalink
Generate documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
niwinz committed Mar 27, 2022
1 parent 6130eb4 commit a3f6bc4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions latest/user-guide.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ <h3><a href="#istr" id="istr"></a>istr</h3>
<h3><a href="#ffmt" id="ffmt"></a>ffmt</h3>
<p>Another string formating, simplier alternative to the <code>istr</code> macro.</p>
<p>It works with two basic forms: sequencial and indexed. Let seen an example:</p>
<pre><code class="language-clojure">(str/ffmt \"url(%)\" my-url) ; sequential
(str/ffmt \"url(%1)\" my-url) ; indexed
<pre><code class="language-clojure">(str/ffmt "url(%, %)" my-url my-label) ; sequential access
(str/ffmt "url(%1, %2)" my-url my-label) ; indexed access
</code></pre>
<p>If you need the <code>%</code> character, just duplicate it:</p>
<pre><code class="language-clojure">(str/fmt "%1%%" 1)
<pre><code class="language-clojure">(str/ffmt "%1%%" 1)
;; =&gt; "1%"

(str/fmt "%%%" 1)
(str/ffmt "%%%" 1)
;; =&gt; "%1"
</code></pre>
<p>This macro ends using the fast string concatenation thanks to <code>concat</code> macro.</p>
Expand Down

0 comments on commit a3f6bc4

Please sign in to comment.