Fix template code samples