⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 messagesfeedtemplate.tmpl

📁 Network Administration Visualized 网络管理可视化源码
💻 TMPL
字号:
#encoding UTF-8## $Id: $#### Copyright 2006 UNINETT AS#### This file is part of Network Administration Visualized (NAV)#### NAV is free software; you can redistribute it and/or modify## it under the terms of the GNU General Public License as published by## the Free Software Foundation; either version 2 of the License, or## (at your option) any later version.#### NAV is distributed in the hope that it will be useful,## but WITHOUT ANY WARRANTY; without even the implied warranty of## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the## GNU General Public License for more details.#### You should have received a copy of the GNU General Public License## along with NAV; if not, write to the Free Software## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA###### Author: Stein Magnus Jodal <stein.magnus.jodal@uninett.no>###import mx.DateTime## FIXME: %Z can be empty, but we should always give a timezone such as## '+02:00' for CEST and '+01:00' for CET#set $lastBuildDate = mx.DateTime.now().strftime('%a, %d %b %Y %H:%M:%S %Z')<?xml version="1.0" encoding="utf-8"?><rss version="2.0">    <channel>        <title>$channeltitle.replace('<', '&lt;').replace('>', '&gt;')</title>        <link>$channellink</link>        <description>$channeldesc.replace('<', '&lt;').replace('>', '&gt;')</description>        <language>$channellang</language>        <pubDate>$pubDate.strftime('%a, %d %b %Y %H:%M:%S %Z')</pubDate>        <lastBuildDate>$lastBuildDate</lastBuildDate>        <ttl>$channelttl</ttl>                #set msgs = $getVar('msgs', [])        #for msg in msgs        <item>            <title>$msg.title.replace('<', '&lt;').replace('>', '&gt;')</title>            <pubDate>$msg.publish_start.strftime('%a, %d %b %Y %H:%M:%S %Z')</pubDate>            <link>$msg.link</link>            <guid>$msg.guid</guid>            <comments />            <description>$msg.description.replace('<', '&lt;').replace('>', '&gt;')</description>        </item>        #end for    </channel></rss>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -