Templating with Require
In this video we'll look at using require for templating.
When to use
When your template is necessary to the app, use require.
To recap, using require works like this:
You would use it if the data in the file is necessary to your app. Remember, if there's a problem, require will crash your app.
Hints & tips
- Use require when the data in the required file is necessary to your app (your app can't run without it).
Lesson notes are only available for subscribers.