Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个在 nodejs 服务器( https://github.com/bbc/talexample )上运行的示例项目,如何将其编译为 index.html、css 和 js 以在 WebOS 模拟器中进行测试?
据我所知,TAL 框架提供的内容取决于客户端 UA。您可以查看一些 TAL 核心模块,例如 tal-page-strategies 和 config/devices。
基于这些配置,框架设置 HTML 文件的 Doctype、meta 和其他部分,以构建正确的应用程序(HTML5、CE-HTML...for Smart TV、HbbTV、videoconsoles...)
您可以尝试提取 js、CSS、创建 html...,但您需要合并大量代码