SiteLogViewerAddon.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:zual 作者: ninadmhatre 项目源码 文件源码
def template(self):
        html = '''<div class="col-lg-12">
        <div class="panel panel-success">
           <div class="panel-heading">
              <h3 class="panel-title">
                {{- name -}}
                <span class="pull-right glyphicon glyphicon-thumbs-up"></span>
              </h3>
           </div>
           <div id="logviewer" class="panel-collapse">
                <div class="panel-body">
                    <pre class="prettyprint language-py" style="height: 500px;">
                        {%- for line in result -%}
{{ line }}<br>
                        {%- endfor -%}
                    </pre>
                </div>
           </div>
        </div></div>
        '''

        t = Template(html)
        return t.render(name=self.name, result=self.result, help_url=self.get_help_url())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号