Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Http 用于为具有标头的资产提供服务的开发服务器_Http_Templates_Client Side Templating - Fatal编程技术网

Http 用于为具有标头的资产提供服务的开发服务器

Http 用于为具有标头的资产提供服务的开发服务器,http,templates,client-side-templating,Http,Templates,Client Side Templating,我正在尝试提供可以这样使用的模板资产: <script type="text/x-template" id="todo-item-template" src="todo-item-template.xhtml"> 这意味着我需要在与脚本类型对齐的资产上设置标题 有没有一种方法可以在文件系统之外使用某种开发appserver来实现这一点?我正试图构建一个工作流,让我们的前端人员在不与真正的后端运行的情况下工作 像python-msimplehttpserver这样简单的东西,除

我正在尝试提供可以这样使用的模板资产:

<script type="text/x-template" id="todo-item-template" src="todo-item-template.xhtml"> 

这意味着我需要在与脚本类型对齐的资产上设置标题

有没有一种方法可以在文件系统之外使用某种开发appserver来实现这一点?我正试图构建一个工作流,让我们的前端人员在不与真正的后端运行的情况下工作

python-msimplehttpserver
这样简单的东西,除了让我可以为某些扩展配置头之外,那就太好了。自己编写代码很简单,但更愿意使用现有的解决方案,因为可能会有更多未预见的问题