Comments (2)
Well, for an MVP you can just use functions that return template strings (optionally with dedent module):
const MY_TEMPLATE = ({ title, body }) => dedent `
<html>
<head><title>${title}</title></head>
<body>
${body}
</body>
</html>
`;
from gh-canary.
In TestCafe we use Mustache templates for some tasks too.
from gh-canary.
Related Issues (19)
- MVP Prototype
- Express can't be configured outside App class HOT 1
- Dividing frontend from backend
- Github webhooks HOT 1
- Replace custom mocking mechanism with `nock` module HOT 1
- Add GH authentication HOT 1
- Use ES6 imports and TypeScript HOT 1
- Enable the strict typechecking HOT 1
- Dynamically update the pull requests list via polling
- Improve error handling on the client side
- [optional] Use a separate bundle for the client error handlers
- Use the debug module
- Final tasks
- Templates on the client
- Use app.static to serve the page
- Allow to configure server's host and port with environment variables
- Create an App class and incapsulate a Server instance inside it
- Allow to use `npm start` to start the server
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 gh-canary.