I'm having trouble understanding the syntax for the include tag in CSP (C++ Server Pages).
Can someone please explain it to me?
Really? Do go into further detail. It uses reguar C++ thus regular C style include tags.
On a side note: I'm now playing with this, this is indeed an amazing toy. Kudos to you good sir for knowing this exists.
I don't mean regular C include directives (#include <iostream>)
I mean a CSP tag that works as a server-side include:
<%@ include uri="uri" (static | dynamic) %>
static makes it work much like the #include directive, except what it includes is CSP rather than C/C++
dynamic essentially runs the CSP script being called and inserts the output from said script where the include tag was.
There wasn't really any explanation of the syntax listed, so I was wondering if anyone knew how it works. From what I gather it seems to be:
<%@ include uri="nav.csp" dynamic %> or
<%@ include uri="copyright.csp" static %>
The article this syntax comes from is:
Also (i'm glad to know I'm not the ONLY person who's heard of this), do you know of a good reference site on CSP? All the ones I've been able to find are rather incomplete.
P.S. the <%=myObject%> tag translates to response<<myObject, right? I'm just wondering if I can use operator<< overloading to make it easier to print out certain data.