Created
December 19, 2015 18:20
-
-
Save dodolboks/07dd1e51c8fe8134a5f5 to your computer and use it in GitHub Desktop.
Revisions
-
dodolboks renamed this gist
Dec 19, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
dodolboks created this gist
Dec 19, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ from django import template register = template.Library() @register.filter def titlefirst(value): import re s = re.sub("(^|\s)(\S)", repl_func, value) return s