-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
88ec60c
commit 5677cfd
Showing
1 changed file
with
11 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
### Templating | ||
- ExpressJS can be integrated with many Templating Engines | ||
- Because Express does not come with a default TE , I can create my package or download a package that does the | ||
the templating for me and I can use it with HTTP | ||
- Templating means when I have a lot of dynamic content on the web application and I want to display it I can: | ||
- ExpressJS can be integrated with many Templating Engines | ||
- Because Express does not come with a default TE , I can create my package or download a package that does the the templating for me and I can use it with HTTP | ||
- Templating means when I have a lot of dynamic content on the web application and I want to display it I can: | ||
- leave some parts of the web page I want to keep them intact for example my facebook profile vs my friends | ||
- structure is the same but the content is not e.g. name, username, friends | ||
- Templating is basically defining the structure and leaves out space for dynamic content to be added | ||
- It then takes the input data and outputs the HTML output as a response | ||
- You can create your own template but it is highly recommended to use the existing templating engines that exist | ||
- This is because they are not difficult to install and they have been tested, which means: | ||
* errors | ||
* bugs | ||
* security flaws that people may face already have been resolved | ||
- structure is the same but the content is not e.g. name, username, friends | ||
- Templating is basically defining the structure and leaves out space for dynamic content to be added | ||
- It then takes the input data and outputs the HTML output as a response | ||
- You can create your own template but it is highly recommended to use the existing templating engines that exist | ||
This is because they are not difficult to install and they have been tested, which means: | ||
- errors | ||
- bugs | ||
- security flaws that people may face already have been resolved |