Comments (2)
Fixed in c888c90, just update odi to 0.2.13
version. And call the method in handler.
Example:
@RouteGet("/hey")
sayHello() {
this.setType('text/html');
return `<h1>Hey!</h1>`
}
In next major release (0.3.0) templates rendering functional will be added.
from odi.
Oops, found that setType(...)
method missed on the controller and existed only in local draft. Give me the few minutes, I will push updates. :)
from odi.
Related Issues (17)
- Support settings for DI components.
- Bind errors to http errors and statuses
- [WIP] Add session based auth
- [WIP] Create Odi website
- Reactive React Components HOT 2
- GraphQL support
- How to add CORS
- Cover code with tests
- Deno support
- Adding support of automatic route filling HOT 2
- Create docs for all framework parts HOT 7
- Support for config file
- Asset pipeline HOT 2
- cli for Odi? HOT 4
- GrahpQl feature release HOT 2
- Error using query decorator HOT 1
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 odi.