Skip to content
This repository has been archived by the owner on Aug 12, 2021. It is now read-only.

Commit

Permalink
jtwig's own title function already does this. whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
gered committed Mar 23, 2014
1 parent 7d6ecbb commit 1c434ca
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/clj_jtwig/standard_functions.clj
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
(-> sequence vals butlast)
(butlast sequence)))}

"capitalize_all"
{:fn (fn [s]
(WordUtils/capitalize s))}

"center"
{:fn (fn [s size & [padding-string]]
(StringUtils/center s size (or padding-string " ")))}
Expand Down
4 changes: 0 additions & 4 deletions test/clj_jtwig/functions_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,6 @@
(is (= (render "{{ [1, 2, 3, 4, 5]|butlast }}" nil)
"[1, 2, 3, 4]")))

(testing "capitalize_all"
(is (= (render "{{ capitalize_all('hello world') }}" nil)
"Hello World")))

(testing "center"
(is (= (render "{{ center('bat', 5) }}" nil)
" bat "))
Expand Down

0 comments on commit 1c434ca

Please sign in to comment.