0

I was reading about SSI here. The first code example under the section Control Directives looks like this:

<!--#if expr="${Sec_Nav}" -->
<!--#include virtual="" -->
<!--#endif -->

What does the "$" sign mean? EOF, a function, get...???

Thanks!

Community
  • 1
  • 1
Chris22
  • 1,973
  • 8
  • 37
  • 55

1 Answers1

1

It is just a way to inject a variable value inside a string

<!--#if expr="${Sec_Nav}" -->

this is comparing expr to the value of Sec_Nav

Bassam Mehanni
  • 14,796
  • 2
  • 33
  • 41
  • "_It is just a way to inject a variable value inside a string_" so does this mean it is not needed? It could have been written as `` – Chris22 Feb 16 '12 at 15:20
  • @Chris22 '' compares expr to "{Sec_Env}" while '' compares expr to the value of Sec_Env – Bassam Mehanni Feb 16 '12 at 15:26