Add better support for v0 rules in template