1.0.19 • Published 4 months ago
@spearly/cms-js-core v1.0.19
Spearly CMS JS Core module
Feature
- Generate converted html string from specified html template string.
- Fetch content data.
Concept : DO NOT MANIPULATE THE DOM
- This module SHOULD NOT use Browser DOM Manipulation.
- This module should out of DOM world.
- This module should use pure JavaScript.
- Internally, this core library use html parser in order to search sub-loop element.
Spec
generateContent
generateContent
will generate the one content html string from fetched data.
Params:
- templateHtml : template html string which using generate the html. This html string SHOULD NOT contain
cms-item
attributes. This mean that pass the innerHTML of element which hascms-item
. - contentId : Specify the content id want to fetch. or You can specify alias id.
Return:
- Generated content as html string.
Error:
- Throws Error when generator doesn't fetch or convert.
1.0.19
4 months ago
1.0.18
2 years ago
1.0.17
2 years ago
1.0.16
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.15
2 years ago
1.0.14
2 years ago
1.0.13
2 years ago
1.0.12
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago