New issue 65 by Boris.Callens: Possibility to add custom markuprules?
http://code.google.com/p/nhaml/issues/detail?id=65
In order to register custom markup rules it would suffice to create a
class that inherits from MarkupRule and then register it by adding by
running AddRule on NHamlMvcViewEngine.TemplateEngine.Options.
If I'm not mistaking currently this is impossible from outside the
NHamlMvcViewEngine because Template engine is protected.
By simply either making the TemplateEngine property public (get only) or
by propagating the AddRule method somewhere we could enable run-time
adding of custom rules.
This allows me to do
var nHamlMvcViewEngine = new NHamlMvcViewEngine();
nHamlMvcViewEngine.TemplateEngine.Options.AddRule(
new Boris.NHaml.Rules.MyCustomMarkupRule());
ViewEngines.Engines.Add(nHamlMvcViewEngine);
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
Comment #1 on issue 65 by simon.cropp: Possibility to add custom
markuprules?
http://code.google.com/p/nhaml/issues/detail?id=65
done
go here for latest build
http://teamcity.codebetter.com/viewLog.html?buildId=lastSuccessful&buildTypeId=bt43&tab=artifacts
Nice :)