我有一个遗留的 Lotus Domino Web 应用程序——当然还有数据的数据库,还有 JavaScript、资源——包括 png 和 jpg 图像、HTML 和 CSS 等子表单。
我想导出应用程序本身——不是数据,只是应用程序结构——这样我就可以在其他使用 HTML 模板的更现代的 Web 框架(例如 Rails 或 NodeJS 或 PHP 或 Python 或其他)中重用图像、HTML 和 CSS和 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 在下面的评论中指出的那样,这值得更好的解释。
有问题的 Domino 应用程序(主要)使用静态 html 和 JS 通过 Ajax 从代理检索数据。因此,用户界面(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>