瓶模板支持? [英] Bottle Template Support?

查看:74
本文介绍了瓶模板支持?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用PyCharm 3.4.1,并从Mongo大学学习MongoDB。在代码中,他们让我们使用Python使用带有Bottle的MVC模式创建html页面。

I'm using PyCharm 3.4.1 and learning MongoDB from Mongo University. In the code, they have us using Python to create html pages using the MVC pattern with bottle.

当我在PyCharm的编辑器中添加.tpl类型的文件时,代码中没有智能或该模型的支持。将其更改为html文件类型列表会有所帮助,但在编辑器中没有python支持。

When I add a file of type .tpl to the editor in PyCharm, there is no "intellisense" or support for the model in the code. Changing it to be in the list of html file types helps some, but no python support in the editor.

是否有我可以支持的插件或其他更改编辑更好?似乎有人在今年早些时候在>如何获取tpl文件中提出了类似的要求突出显示在pycharm中?

Is there a plugin or some other change i can make to support editing better? Seems someone else asked something similar earlier in the year at How to get tpl files highlighted in pycharm?

推荐答案

瓶子带有一个名为 SimpleTemplate 其中

有相关功能请求: 瓶的微框架支持 ,但没有明确声明 .tpl 语法支持。

There is a relevant feature request: Bottle microframework support, but it doesn't explicitly state about .tpl syntax support.

我会去创建 PyCharm的问题跟踪器中的功能请求,询问 SimpleTemplate 语法支持t,或者至少对现有问题进行投票并发表评论。

I'd go and create a feature request in PyCharm's issue tracker asking about SimpleTemplate syntax support or, at least, vote up and comment in the existing issue.

例如,对于龙卷风有类似的功能要求模板引擎:

  • Add Tornado Template Support

当前票数为56,

作为解决方法,您可以配置 .tpl 设置->文件类型 。可以在那里设置突出显示规则。

As a workaround, you can configure .tpl file type under Settings -> File Types. It is possible to set highlighting rules there.

这篇关于瓶模板支持?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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