【发布时间】:2014-07-23 17:41:27
【问题描述】:
我有一个遗留的 Lotus Domino Web 应用程序 - 数据库,当然还有数据,还有 JavaScript、资源 - 包括 png 和 jpg 图像、HTML 和 CSS 等子表单。
我想导出应用程序本身 - 不是数据,只是应用程序结构 - 这样我就可以在其他更现代的 Web 框架(例如 Rails 或 NodeJS 或PHP 或 Python 或其他)使用 HTML 模板和 CSS 和 JS 作为文件。
如何按原样导出 HTML、CSS、JS、png、jpg 等?我很高兴采用 Designer 中显示的整个文件结构,只是想获得实际的 HTML/CSS/JS/images/etc。在那里。
我尝试使用“源代码控制磁盘同步”选项,但文件以某种奇怪的 Domino 特定 XML 格式保存,底层 HTML/CSS/etc 存储为十六进制。不是很有帮助。
例如,我的应用程序中可能有 Shared Elements\subforms\main.login.subform(和许多其他人),它看起来像:
<style>
#service-content {
background-color: #fff;
}
label, input {
width: 100px;
display: inline-block;
padding: 3px 5px;
margin-bottom: 10px;
}
input {
width: 300px;
}
#login-message, h1 {
text-align: center;
}
</style>
<div style="width: 450px; margin: 0 auto">
<input type="hidden" value="/<Computed Value>/page?readform" name="RedirectTo" />
<h1>Login</h1>
<!-- lots of html here -->
</div>
<!--// NAVIGATION -->
我想提取它(以及其他喜欢它的人)。
编辑:
正如@AndrewB 在下面的 cmets 中指出的那样,这值得更好的解释。
有问题的 Domino 应用程序(主要)使用静态 html 和 JS 通过 Ajax 从代理检索数据。所以 UI (html/css/js) 对于任何支持都非常可重用,工作量适中。
但它只有在我能得到原始静态页面的情况下才有效。这些静态数据存储在Resources\Files\ 或Shared Elements\subforms\ 下
编辑 2:
当我按照@sjcaged 关闭二进制 DXL 导出时,我得到的上述原始 HTML 的输出如下所示(这只是结束):
<font name='Courier New' pitch='fixed' truetype='true' familyid='30' color='#4200ff'/>"submit"</run>
<run><font name='Courier New' pitch='fixed' truetype='true' familyid='30'/> </run>
<run><font name='Courier New' pitch='fixed' truetype='true' familyid='30' color='purple'/>value</run>
<run><font name='Courier New' pitch='fixed' truetype='true' familyid='30'/>=</run>
<run><font name='Courier New' pitch='fixed' truetype='true' familyid='30' color='#4200ff'/>"Login"</run>
<run><font name='Courier New' pitch='fixed' truetype='true' familyid='30'/> </run>
<run><font name='Courier New' pitch='fixed' truetype='true' familyid='30' color='teal'/>></</run>
<run><font name='Courier New' pitch='fixed' truetype='true' familyid='30' color='#3f8080'/>div</run>
<run><font name='Courier New' pitch='fixed' truetype='true' familyid='30' color='teal'/>></run></par>
<par def='3'><run><font name='Courier New' pitch='fixed' truetype='true' familyid='30'/></run>
<run><font name='Courier New' pitch='fixed' truetype='true' familyid='30' color='teal'/></</run>
<run><font name='Courier New' pitch='fixed' truetype='true' familyid='30' color='#3f8080'/>form</run>
<run><font name='Courier New' pitch='fixed' truetype='true' familyid='30' color='teal'/>></run></par>
<par def='3'>
<run><font name='Courier New' pitch='fixed' truetype='true' familyid='30' color='teal'/></</run>
<run><font name='Courier New' pitch='fixed' truetype='true' familyid='30' color='#3f8080'/>div</run>
<run><font name='Courier New' pitch='fixed' truetype='true' familyid='30' color='teal'/>>
</run></par>
<par def='2'><run><font name='monospace'/><!--// NAVIGATION --></run></par></richtext>
</body>
<item name='$$ScriptName' summary='false' sign='true'><text>main.nav</text></item></subform>
【问题讨论】:
标签: lotus-notes lotus-domino domino-designer-eclipse