You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 18b5991
Browse filesBrowse the repository at this point in the historyBrowse files
All updates to this library are documented in our [CHANGELOG](https://github.com/CoCreateJS/CoCreate-render/blob/master/CHANGELOG.md) and [releases](https://github.com/CoCreateJS/CoCreate-render/releases). You may also subscribe to email for releases and breaking changes.
53
+
All updates to this library are documented in our [CHANGELOG](https://github.com/CoCreateJS/render/blob/master/CHANGELOG.md) and [releases](https://github.com/CoCreateJS/render/releases). You may also subscribe to email for releases and breaking changes.
54
54
55
55
<aname="roadmap"></a>
56
56
57
57
# Roadmap
58
58
59
-
If you are interested in the future direction of this project, please take a look at our open [issues](https://github.com/CoCreateJS/CoCreate-render/issues) and [pull requests](https://github.com/CoCreateJS/CoCreate-render/pulls). We would love to hear your feedback.
59
+
If you are interested in the future direction of this project, please take a look at our open [issues](https://github.com/CoCreateJS/render/issues) and [pull requests](https://github.com/CoCreateJS/render/pulls). We would love to hear your feedback.
60
60
61
61
<aname="about"></a>
62
62
@@ -72,9 +72,9 @@ CoCreate-render is maintained and funded by CoCreate. The names and logos for Co
72
72
73
73
# How to Contribute
74
74
75
-
We encourage contribution to our libraries (you might even score some nifty swag), please see our [CONTRIBUTING](https://github.com/CoCreateJS/CoCreate-render/blob/master/CONTRIBUTING.md) guide for details.
75
+
We encourage contribution to our libraries (you might even score some nifty swag), please see our [CONTRIBUTING](https://github.com/CoCreateJS/render/blob/master/CONTRIBUTING.md) guide for details.
76
76
77
-
We want this library to be community-driven, and CoCreate led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create [issues](https://github.com/CoCreateJS/CoCreate-render/issues) and [pull requests](https://github.com/CoCreateJS/CoCreate-render/pulls) or merely upvote or comment on existing issues or pull requests.
77
+
We want this library to be community-driven, and CoCreate led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create [issues](https://github.com/CoCreateJS/render/issues) and [pull requests](https://github.com/CoCreateJS/render/pulls) or merely upvote or comment on existing issues or pull requests.
78
78
79
79
We appreciate your continued support, thank you!
80
80
@@ -84,8 +84,38 @@ We appreciate your continued support, thank you!
84
84
85
85
This software is dual-licensed under the GNU Affero General Public License version 3 (AGPLv3) and a commercial license.
86
86
87
-
-**Open Source Use**: For open-source projects and non-commercial use, this software is available under the AGPLv3. The AGPLv3 allows you to freely use, modify, and distribute this software, provided that all modifications and derivative works are also licensed under the AGPLv3. For the full license text, see the [LICENSE file](https://github.com/CoCreateJS/CoCreate-render/blob/master/LICENSE).
87
+
-**Open Source Use**: For open-source projects and non-commercial use, this software is available under the AGPLv3. The AGPLv3 allows you to freely use, modify, and distribute this software, provided that all modifications and derivative works are also licensed under the AGPLv3. For the full license text, see the [LICENSE file](https://github.com/CoCreateJS/render/blob/master/LICENSE).
88
88
89
89
-**Commercial Use**: For-profit companies and individuals intending to use this software for commercial purposes must obtain a commercial license. The commercial license is available when you sign up for an API key on our [website](https://CoCreateJS.com). This license permits proprietary use and modification of the software without the copyleft requirements of the AGPLv3. It is ideal for integrating this software into proprietary commercial products and applications.
90
90
91
91
If you have not purchased a commercial license and intend to use this software for commercial purposes, you are required to sign up for an API key on our website.
92
+
93
+
94
+
## Server
95
+
96
+
Render also provides a stateless server-side HTML renderer. Import it from `@cocreate/render/server`; the browser renderer remains available from `@cocreate/render`.
97
+
98
+
### Server rendering
99
+
100
+
The `HTML` function processes HTML strings, resolves nested file and database-backed content, applies state and metadata, and protects recursive includes from circular references.
The server renderer evaluates `src` for nested file fragments, `array` and `object` to resolve records, and `key` to place a value. It also supports `filter`, `value-type="outerHTML"`, `render-error`, `state-id`, and `state-overwrite`. Server rendering marks inserted content with `rendered="true"` so the browser does not fetch the same fragment again.
0 commit comments