Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在剃须刀引擎中包含自定义功能以增强它的功能?
例如,如果我想使用:
$(This is my text)
代替
<text>This is my text</text>
有没有办法做到这一点?
你可以有
@:This is my text
这就是我在不使用<text>...</text>标签的情况下执行字符串文字的方式。除非你想要别的东西,否则剃须刀已经提供了这个?
<text>...</text>