hishamco / MarkdownViewEngine

Markdown View Engine for ASP.NET Core
http://hishambinateya.com/introducing-a-new-markdown-view-engine-for-asp.net-core
MIT License
43 stars 3 forks source link

The mustache nuggets must respect the Model Properties casing #10

Closed hishamco closed 7 years ago

hishamco commented 7 years ago

Now if we have a model like this:

@model firstName="Jon" lastName="Doe"

This will work {{FirstName}}, but {{firstName}} doesn't

So the mustache nugget case should respect the case of the model property, in above example this {{firstName}} should work fine

hishamco commented 7 years ago

This is line https://github.com/hishamco/MarkdownViewEngine/blob/master/src/MarkdownViewEngine/MarkdownDirective.cs#L19 the main reason for this issue. We will add the properties casing as its

hishamco commented 7 years ago

Fixed in commit https://github.com/hishamco/MarkdownViewEngine/commit/cb6a7f24f64e063238725734125b544096f5e8f7