Make predefined_type use kwargs.

This commit is contained in:
Bobby Holley 2016-04-19 17:05:59 -07:00
parent a4ee11da0a
commit 456b05e9cf

View file

@ -16,8 +16,8 @@
</%call>
</%def>
<%def name="predefined_type(name, type, initial_value, parse_method='parse', products='gecko servo')">
<%self:longhand name="${name}" products="${products}">
<%def name="predefined_type(name, type, initial_value, parse_method='parse', **kwargs)">
<%call expr="longhand(name, **kwargs)">
#[allow(unused_imports)]
use app_units::Au;
pub type SpecifiedValue = specified::${type};
@ -29,7 +29,7 @@
-> Result<SpecifiedValue, ()> {
specified::${type}::${parse_method}(input)
}
</%self:longhand>
</%call>
</%def>
<%def name="raw_longhand(*args, **kwargs)">