NHAML でディレクティブ (@ Import など) を使用する方法を知っている人はいますか?
1 に答える
1
参照を追加して名前空間をインポートする場合は、app.configまたはweb.configで行います。
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="nhaml" type="NHaml.Configuration.NHamlConfigurationSection, NHaml"/>
</configSections>
<nhaml autoRecompile="true">
<assemblies>
<add assembly="NHaml.Samples.Mvc"/>
</assemblies>
<namespaces>
<add namespace="NHaml.Web.Mvc"/>
<add namespace="NHaml.Samples.Mvc.Controllers"/>
</namespaces>
</nhaml>
...
</configuration>
于 2009-04-28T08:35:47.607 に答える