Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Issue 65 in nhaml: Possibility to add custom markuprules?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
codesite-nore...@google.com  
View profile  
 More options Nov 9 2009, 4:03 am
From: codesite-nore...@google.com
Date: Mon, 09 Nov 2009 09:03:07 +0000
Local: Mon, Nov 9 2009 4:03 am
Subject: Issue 65 in nhaml: Possibility to add custom markuprules?
Status: New
Owner: ----

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
codesite-nore...@google.com  
View profile  
 More options Nov 10 2009, 1:23 am
From: codesite-nore...@google.com
Date: Tue, 10 Nov 2009 06:23:20 +0000
Local: Tues, Nov 10 2009 1:23 am
Subject: Re: Issue 65 in nhaml: Possibility to add custom markuprules?
Updates:
        Status: Fixed

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&bu...

--
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
codesite-nore...@google.com  
View profile  
 More options Nov 10 2009, 3:31 am
From: codesite-nore...@google.com
Date: Tue, 10 Nov 2009 08:31:25 +0000
Local: Tues, Nov 10 2009 3:31 am
Subject: Re: Issue 65 in nhaml: Possibility to add custom markuprules?

Comment #2 on issue 65 by Boris.Callens: Possibility to add custom  
markuprules?
http://code.google.com/p/nhaml/issues/detail?id=65

Nice :)

--
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
codesite-nore...@google.com  
View profile  
 More options Nov 10 2009, 3:35 am
From: codesite-nore...@google.com
Date: Tue, 10 Nov 2009 08:35:26 +0000
Local: Tues, Nov 10 2009 3:35 am
Subject: Re: Issue 65 in nhaml: Possibility to add custom markuprules?

Comment #3 on issue 65 by Boris.Callens: Possibility to add custom  
markuprules?
http://code.google.com/p/nhaml/issues/detail?id=65

Nice :)

--
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »