最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c# - Handlebars.Net, detecting whether a tag is used within an #each - Stack Overflow

programmeradmin0浏览0评论

I have a use case where I need to restrict a specific tag to be used within an #each only, and never outside. Is there a way I can do this back-end without creating a custom handler?

I have googled this, but I've not really come up with anything other than a custom handler, and our company would prefer we avoid using this if possible. I think for user familiarity reasons.

It might be more achievable on the front end, I don't know, but any guidance would be appreciated.

Thanks

发布评论

评论列表(0)

  1. 暂无评论