[templates] add twig paths, reuse layout from core, add tests.