plugins can now define a templates directory which gets compiled onload without requiring any hooks