Using template expressions


show more Using template expressions provides you with in-depth training on Web. Taught by James Williamson as part of the Dreamweaver CS3 Beyond the Basics show less
please wait ...

Using template expressions

Our nested template now contains a template parameter that we can use to change elements on our page. Now to do that, we are also going the have to use something known as a template expression. We have already used template expressions when we created our main template. So, I am just going to open that up and we will take a quick look at that. And if you remember, in our main template certain attribute values are editable, and if we look at the code of our main template, on line number 8 we have a link tag and we have the following template expression. I am just going to highlight this so you will know exactly which one I am talking about. It has the two @ symbols and the parenthesis and it says _document and then inside that, it says document styles.

Now what that is basically saying, the @ symbols and surrounding document styles is saying inside of my parenthesis is a template expression and the template expression itself is just JavaScript and text. And what this expression is doing ...

Using template expressions
Video duration: 9m 59s 11h 10m Intermediate

Viewers:

Using template expressions provides you with in-depth training on Web. Taught by James Williamson as part of the Dreamweaver CS3 Beyond the Basics

Subject:
Web
Software:
Dreamweaver
Author:
please wait ...