Skip to content

Commit

Permalink
fixed broken link (mdn#32461)
Browse files Browse the repository at this point in the history
* fixed broken link

replaced a broken link from the template/view section with it's archive

* Update files/en-us/learn/server-side/express_nodejs/introduction/index.md

---------

Co-authored-by: Hamish Willee <[email protected]>
  • Loading branch information
yogeshdnumb and hamishwillee authored Mar 1, 2024
1 parent 5fef5d3 commit 2528ef1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ For more information see [Database integration](https://expressjs.com/en/guide/d

### Rendering data (views)

Template engines (also referred to as "view engines" by _Express_'s documentation) allow you to specify the _structure_ of an output document in a template, using placeholders for data that will be filled in when a page is generated. Templates are often used to create HTML, but can also create other types of documents. Express has support for [a number of template engines](https://github.com/expressjs/express/wiki#template-engines), and there is a useful comparison of the more popular engines here: [Comparing JavaScript Templating Engines: Jade, Mustache, Dust and More](https://strongloop.com/strongblog/compare-javascript-templates-jade-mustache-dust/).
Template engines (also referred to as "view engines" in _Express_) allow you to specify the _structure_ of an output document in a template, using placeholders for data that will be filled in when a page is generated. Templates are often used to create HTML, but can also create other types of documents. Express has support for [a number of template engines](https://expressjs.com/en/resources/template-engines.html), each with its own strengths for addressing particular use cases (relative comparisons can easily be found via Internet search).

In your application settings code you set the template engine to use and the location where Express should look for templates using the 'views' and 'view engine' settings, as shown below (you will also have to install the package containing your template library too!)

Expand Down

0 comments on commit 2528ef1

Please sign in to comment.