code_junkie

NHaml configuration problem: Model is not found

Nov 13th, 2011
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. <configSections>
  2. <section name="nhaml" type="NHaml.Configuration.NHamlConfigurationSection, NHaml"/>
  3. </configSections>
  4.  
  5. <nhaml AutoRecompile="true">
  6. <assemblies>
  7. <add assembly="Microsoft.Web.Mvc"/>
  8. <add assembly="MyAssembly"/>
  9. </assemblies>
  10. <namespaces>
  11. <add namespace="NHaml.Web.Mvc"/>
  12. <add namespace="MyAssembly.Models"/>
  13. <add namespace="System.Linq"/>
  14. </namespaces>
  15. </nhaml>
  16.  
  17. %ul
  18. - foreach(var v in (IQueryable<Model>)ViewData["stat"])
  19. %li= v.name
  20.  
  21. MyAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Add Comment
Please, Sign In to add comment