Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gobengo/contentjs
https://github.com/gobengo/contentjs
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/gobengo/contentjs
- Owner: gobengo
- Created: 2013-03-21T17:59:18.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-03-25T23:11:33.000Z (over 11 years ago)
- Last Synced: 2024-10-03T15:29:06.632Z (about 1 month ago)
- Language: CoffeeScript
- Size: 125 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ContentJS
ContentJS helps developers work with Content on the web. It's everywhere these days, in all sorts of formats, and viewed with all sorts of styles and templates. ContentJS aims to simplify and structure this Content to provide an opportunity for standard Tempaltes and Theme libraries. Beautiful Content, easily.
ContentJS provides a standard interface to the following properties of Web Content:
* `html` - The HTML body of the Content. This is the only required property.## Content
Content is a structured way of representing web microdocuments (i.e. HTML fragments) meant for human consumption. Things like comments, blog posts, tweets, photos, and more.
Content should be passed a string of HTML on construction.
You can get an HTML representation of the Content using the `.html` method.
Or set the HTML by passing it a string.Subclasses are encouraged to expose more getters and setters for other, more specific properties.
Just as long as there's always a way of getting HTML from `.html()`