more template ports from twig -> jade