jtwig's own title function already does this. whoops

This commit is contained in:
Gered 2014-03-23 13:17:24 -04:00
parent 7d6ecbb48b
commit 1c434caed2
2 changed files with 0 additions and 8 deletions

View file

@ -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 " ")))}

View file

@ -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 "))