https://github.com/a-x-/select-source
[IDEA] Implement parsing declaration source data resource for select html element syntax
https://github.com/a-x-/select-source
Last synced: 3 months ago
JSON representation
[IDEA] Implement parsing declaration source data resource for select html element syntax
- Host: GitHub
- URL: https://github.com/a-x-/select-source
- Owner: a-x-
- License: mit
- Created: 2014-08-19T22:40:06.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-08-19T22:56:36.000Z (almost 11 years ago)
- Last Synced: 2025-01-11T01:58:32.822Z (4 months ago)
- Homepage:
- Size: 125 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
select-source
=============Implement parsing declaration source data resource for select html element syntax
# The Idea
HTML:
```html...
```
`GET /car-types.json`:
```json
{
"audi": { "content":"Audi" },
"vw": { "content":"Volkswagen" },
"mercedes": { "content":"Mercedes" },
"delorian": { "content": "DeLorean DMC-12" }
}
```Rendered HTML:
```html
<select src="<url>" name="car-type" >
<option value="audi">Audi</option>
<option value="vw">Volkswagen</option>
<option value="mercedes">Mercedes</option>
<option value="delorian">DeLorean DMC-12</option>
</select>
...
<script src="/select-source.js">
```# Usage
# Status
This is under active development stage **(not production ready)**.
| **Idea** | Alpha | Beta | RC | Production |
|:--------:|:-----:|:----:|:--:|:----------:|
| **Ok** | — | — | — | — |# Demo
# License
All under MIT license.
# Contribution
You're welcome!
I watch github issues and mailbox ([email protected]).English typo-fixes are welcome too.