是否可以在 Shopify 中动态提供 HTML?

Is it possible to serve HTML dynamically in Shopify?

我正在考虑拉入 json 文件并从中生成页面。我只是想知道这在 Shopify 中是否可行。

我们希望将我们当前的网站完全移至 Shopify,我们希望我们仍然可以拥有从 angular 和节点获得的大部分功能。

是的,您可以通过 应用程序代理

An application proxy is a feature that fetches and displays data on a Shopify shop page from an outside location that you, the developer, specify. For app developers, this means that the content on these proxy pages can be dynamic; capable of being updated as much as you feel necessary. App developers can use application proxies to display image galleries, statistics and custom forms, just to name a few examples.

基本上,当 Shopify 在代理路径上收到 HTTP 请求时,它会将该请求转发到您指定的 URL,以便您可以按照自己的意愿进行操作。更进一步,如果您在响应 headers 上设置 Content-Type: application/liquid,Shopify 将为您呈现模板;因此您可以使用您自己的流动模板使此页面的外观和行为与您商店的其他部分完全一样。

有关于如何开始 the official Shopify Documentation.

的信息