NHAML Directives -


How does one use the instructions with NHAM (eg @ import)

If you want to add context and import names, you do this in app.config or web.config

  & lt;? XML version = "1.0"? & Gt; & Lt; Configuration & gt; & Lt; ConfigSections & gt; & Lt; Section name = "infinity" type = "NHaml.configuration.NHamlConfigurationSection, NHaml" /> & Lt; / ConfigSections & gt; & Lt; Nhaml autoRecompile = "true" & gt; & Lt; Assemblies & gt; & Lt; Add assembly = "NHaml.Samples.mvc" /> & Lt; / Assemblies & gt; & Lt; Namespace & gt; & Lt; Add namespace = "NHaml.Web.Mvc" /> & Lt; Add namespace = "NHaml.Samples.Mvc.Controllers" /> & Lt; / Namespace & gt; & Lt; / Nhaml & gt; ... & lt; / Configuration & gt;  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -