From a3f6bc4ea7ae2bc340f4df31d25d0d3bc299e3ba Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Sun, 27 Mar 2022 23:51:24 +0200 Subject: [PATCH] Generate documentation --- latest/user-guide.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/latest/user-guide.html b/latest/user-guide.html index ee53d68..c162d76 100644 --- a/latest/user-guide.html +++ b/latest/user-guide.html @@ -92,14 +92,14 @@

istr

ffmt

Another string formating, simplier alternative to the istr macro.

It works with two basic forms: sequencial and indexed. Let seen an example:

-
(str/ffmt \"url(%)\" my-url) ; sequential
-(str/ffmt \"url(%1)\" my-url) ; indexed
+
(str/ffmt "url(%, %)" my-url my-label) ; sequential access
+(str/ffmt "url(%1, %2)" my-url my-label) ; indexed access
 

If you need the % character, just duplicate it:

-
(str/fmt "%1%%" 1)
+
(str/ffmt "%1%%" 1)
 ;; => "1%"
 
-(str/fmt "%%%" 1)
+(str/ffmt "%%%" 1)
 ;; => "%1"
 

This macro ends using the fast string concatenation thanks to concat macro.