如何在Azure功能中添加剃刀视图文件? [英] How to add razor view file in Azure function?

查看:68
本文介绍了如何在Azure功能中添加剃刀视图文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个应用程序,它是一个天蓝色函数项目,并且我想在该项目中使用Razor视图, 我应该在Azure函数中使用任何模板引擎吗?

I am creating an app which is azure function project and I want to use Razor view in that project, Is there any templating engine that I should use in azure function?

推荐答案

Azure Functions不为Razor或其他模板引擎提供任何内置或特殊支持,因此,使用它的事实不应影响您的决定.关于使用什么引擎.

Azure Functions does not provide any built in or special support for Razor or other template engines, so the fact that you're using it shouldn't influence your decision as to what engine to use.

Razor和其他模板引擎确实支持程序渲染,因此您应该能够使用该方法来使模板在Azure Functions中工作.

Razor and other template engines do support programmatic rendering, so you should be able to use that approach to get your templates to work in Azure Functions.

这篇关于如何在Azure功能中添加剃刀视图文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆