On Feb 12, 2014, at 8:17, Daniele Sluijters <lists / ruby-forum.com> =
wrote:

> I'm trying to implement a Rake task that will syntax validate an ERB
> template. Up to now I was always able to do this with "erb -P -x -T =
'-'
> /path/to/template | ruby -c" on the command line but doing this
> individually for a lot of files becomes slow pretty quickly.

find /path/to/templates -name \*.erb -print0 | xargs -0 erb -P -x -T '-' =
| ruby -c

untested