Join Troy Miles for an in-depth discussion in this video Creating HTML pages, part of Web Servers and APIs using C++.
- [Instructor] In our first code example,…we built the HTML snippet from a string.…Building HTML from strings is terrible…and it would be a torturous way to build a website.…There are two main ways to create HTML in Crow.…The first is to put a pure HTML document…in a file by itself and deliver the file when requested.…Nearly every web framework has this option, including Crow.…The second way is similar, but instead of the file…containing pure HTML, it is a mixture…of HTML and Mustache templates.…
Mustache is a prominent web template system.…Its first release was in 2009 and there are ports available…in nearly every modern language.…Mustache is excellent at mixing data into HTML…and we'll cover it more once we add MongoDB into the mix.…Our recipe for creating HTML pages in Crow is simple.…For each page, let's create a matching HTML file…and a route handler.…It is possible for a singe route to handle multiple pages,…but we'll keep it simple for now.…
We'll store the HTML files together in the same directory.…Let's go back to the code.…
- Working with Crow, the C++ micro web framework
- Deploying containers to Heroku
- Building websites and webpages
- Accessing data from a database
- Accessing data via RESTful APIs
- Creating API endpoints
- Running WebSockets on Heroku
Skill Level Intermediate
1. Installing Our Tools
2. Deploying to Heroku
Installing the Heroku CLI1m 17s
3. Building Websites
4. Data Access
5. RESTful APIs
6. WebSockets and Crow
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.