From 1c434caed22423ded0f66466c637d11830f16216 Mon Sep 17 00:00:00 2001 From: gered Date: Sun, 23 Mar 2014 13:17:24 -0400 Subject: [PATCH] jtwig's own title function already does this. whoops --- src/clj_jtwig/standard_functions.clj | 4 ---- test/clj_jtwig/functions_test.clj | 4 ---- 2 files changed, 8 deletions(-) diff --git a/src/clj_jtwig/standard_functions.clj b/src/clj_jtwig/standard_functions.clj index 11ac30d..8570273 100644 --- a/src/clj_jtwig/standard_functions.clj +++ b/src/clj_jtwig/standard_functions.clj @@ -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 " ")))} diff --git a/test/clj_jtwig/functions_test.clj b/test/clj_jtwig/functions_test.clj index 730d0b2..a672ece 100644 --- a/test/clj_jtwig/functions_test.clj +++ b/test/clj_jtwig/functions_test.clj @@ -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 "))