Template compilation example