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.