NetTalk Central

Author Topic: Static website with some dynamic content - special 3 tags <!-- NetWebServer -->  (Read 1438 times)

JohanR

  • Sr. Member
  • ****
  • Posts: 342
    • View Profile
    • Email

Hi,

I am busy with a new static site with some dynamic content.

Using the following tags, just wanted to know what exactly they do.

<!-- NetWebServer -->
<!-- Net:c:Head -->
<!-- Net:c:BodyEnd -->


As far as I can tell,
<!-- NetWebServer --> ! alerts the server to parse the page
<!-- Net:c:Head --> ! inserts the scripts and CSS specified in the webserver


1) Is there a way to not include any of the builtin/default NTWS JS and CSS, or have access to select which of the default JS and CSS is included?
2) Is there anything else that these tags do?
3) <!-- Net:c:BodyEnd --> not sure what this does except perhaps alert the server to parse until here?



Any further info appreciated

Johan




Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11191
    • View Profile
<!-- NetWebServer -->

tells the WebHandler to parse the text of the static file looking for tags

<!-- Net:c:Head -->

includes all the <head> stuff

<!-- Net:c:Body -->
(not BodyEnd)

includes all the Body stuff. (as defined in .BodyOnLoad method)

>> 1) Is there a way to not include any of the builtin/default NTWS JS and CSS, or have access to select which of the default JS and CSS is included?


sure - don't put in
<!-- Net:c:Head -->
but construct your own header.

Cheers
Bruce