filippo/sgte — Issue #11: sgte:render should return string() or {error, Reason}
Author: dhirajreg
Created: 2011-12-05 06:38:42+00:00
State: open

If rendering fails due to wrong data type or missing attribute in data, it should return {error, Reason}. If rendering is successful, it should return {ok, string()}.

Currently there is no way to check at runtime if rendering failed or no.

To maintain backward compatibility a new flag (e.g. raise_error) should be added to options. If this flag is set and rendering fails {error, Reason} should be returned else string() should be returned.