我正在尝试将宏中的值传递到剃刀模板中。但它似乎没有任何建议?
这是宏代码:
<umbraco:Macro Alias="VideoInline" videoUrl ="[#videoUrl]" videoPosterImage=" <umbraco:Item field=' runat='server' Xslt='umbraco.library:GetMedia({0},false())/umbracoFile'></umbraco:Item>"
runat="server"></umbraco:Macro>
这是剃须刀模板:
@using System
@using umbraco.MacroEngines
<video id="my_video_1" class="video-js vjs-default-skin" controls
preload="auto" poster="@Model.getProperty(Parameter.videoPosterImage).Value"
data-setup="{}">
<source src="@Model.getProperty(Parameter.videoUrl).Value" type='video/mp4'>
</video>