next thing to do is solve the newline thing that come from using def as function inside the templates