jtwig's own title function already does this. whoops
This commit is contained in:
parent
7d6ecbb48b
commit
1c434caed2
|
@ -25,10 +25,6 @@
|
||||||
(-> sequence vals butlast)
|
(-> sequence vals butlast)
|
||||||
(butlast sequence)))}
|
(butlast sequence)))}
|
||||||
|
|
||||||
"capitalize_all"
|
|
||||||
{:fn (fn [s]
|
|
||||||
(WordUtils/capitalize s))}
|
|
||||||
|
|
||||||
"center"
|
"center"
|
||||||
{:fn (fn [s size & [padding-string]]
|
{:fn (fn [s size & [padding-string]]
|
||||||
(StringUtils/center s size (or padding-string " ")))}
|
(StringUtils/center s size (or padding-string " ")))}
|
||||||
|
|
|
@ -284,10 +284,6 @@
|
||||||
(is (= (render "{{ [1, 2, 3, 4, 5]|butlast }}" nil)
|
(is (= (render "{{ [1, 2, 3, 4, 5]|butlast }}" nil)
|
||||||
"[1, 2, 3, 4]")))
|
"[1, 2, 3, 4]")))
|
||||||
|
|
||||||
(testing "capitalize_all"
|
|
||||||
(is (= (render "{{ capitalize_all('hello world') }}" nil)
|
|
||||||
"Hello World")))
|
|
||||||
|
|
||||||
(testing "center"
|
(testing "center"
|
||||||
(is (= (render "{{ center('bat', 5) }}" nil)
|
(is (= (render "{{ center('bat', 5) }}" nil)
|
||||||
" bat "))
|
" bat "))
|
||||||
|
|
Reference in a new issue