Comments (2)
Yes, since it's a specific json schema, makes sense to do this.
from documentation.
I can understand this is meaningful theoretically, but I am not yet understanding how this can be immediately beneficial to anyone in a practical manner at the moment. Maybe if you could share a specific hypothetical scenario where this makes sense, it would help me better understand.
I am asking specifically in the context of what Jasonette is today. Maybe in the future it will grow into something where having its own content-type will be meaningful but today no Jasonette user has problem with the lack of content-type problem. They simply create a separate JSON endpoint for returning the JASON markup and that's that.
Also regarding your comment on "a JASON representation of the same resource", but I am not sure this is the right way to think about this. For example if we think about a typical web app, it consists of Javascript files, CSS files, and an HTML document. When a website loads it makes several requests each with its own content-type (text/css
, text/javascript
, text/html
).
Coming back to Jasonette, the power of Jasonette is it lets you describe equivalents of all of the above in JSON. We describe action
(equivalent to text/javascript
) in JSON, We describe styles
(equivalent to text/css
) in JSON, we also describe the view itself $jason.body
(equivalent to text/html
) in JSON. And on top of that we have mixins which lets you merge all these different formats together, which blurs the line even further. The whole point of Jasonette is there is a single unified markup type that lets you express every aspect of an app. So a content type like application/vnd.jason+json
doesn't really do it justice in my opinion.
Overall, I feel like trying to categorize what Jasonette's markup is at this point will only constrain its potential going forward.
But like I said, maybe I'm not seeing what you're seeing. Please let me know if I'm missing something.
from documentation.
Related Issues (20)
- action for pin selected on map component HOT 2
- Send message from web containers to the parent app HOT 4
- Add connection type to $env HOT 2
- #each with index
- Call JS functions inside web containers from the parent app
- Clarify inline action vs regsitry based trigger gotcha
- Keyboard type HOT 8
- support file url in $network.upload
- Label component styling HOT 1
- Add body.style.align to documentation + more options
- Custom Events (push notification, websocket, geolocation, etc) HOT 3
- Event Logger HOT 8
- add core UI component for on-off (boolean) component
- [Request] Add ios and android attribute to options HOT 1
- Error: no implicit conversion of String into Integer HOT 2
- Errata in $util.datepicker actions documentation, formatting
- Dead link HOT 2
- Search for text on a website
- Porting 32-bit code to 64-bit
- Project Status
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from documentation.