cleaner options parsing from template declarations