Method, framework, and program product for formatting and serving web content
    1.
    发明授权
    Method, framework, and program product for formatting and serving web content 有权
    方法,框架和程序产品,用于格式化和提供Web内容

    公开(公告)号:US09569414B2

    公开(公告)日:2017-02-14

    申请号:US14602460

    申请日:2015-01-22

    摘要: The present invention provides an approach and corresponding framework that separates data from its formatting/view by generating the dynamic JavaScript (data) as a set (e.g., at least one) of JavaScript (data) objects, without any HTML formatting. Then, a set of JavaScript functions can be created that takes the set of JavaScript objects as a parameter, and outputs all or a subset of this data object in a format determined by this JavaScript function. In general, these formatting functions can be static, rather than dynamic, JavaScript. This approach has the advantage of providing a much greater degree of formatting flexibility, without the need for each new format to establish a connection with the back-end system providing the data.

    摘要翻译: 本发明提供了一种方法和相应的框架,其通过将动态JavaScript(数据)作为JavaScript(数据)对象的集合(例如至少一个)生成,而不需要任何HTML格式化,从而将数据与其格式/视图分离。 然后,可以创建一组JavaScript函数,将JavaScript对象集合作为参数,并以此JavaScript函数确定的格式输出该数据对象的全部或一部分。 通常,这些格式化函数可以是静态的,而不是动态的JavaScript。 这种方法具有提供更大程度的格式化灵活性的优点,而不需要每种新格式与提供数据的后端系统建立连接。