Php webtags: Difference between revisions

429 bytes added ,  08:51, 25 April 2020
m
Line 2: Line 2:
= Introduction =
= Introduction =


*Cumulus defines [[webtags|marker tokens called web tags]] that can be incorporated in template files that it processes. Where those place-holders are encountered Cumulus inserts actual values derived from processing information supplied from your weather station into an output file that might be a web page or a PHP script.
== What are web tags for? ==
 
*Cumulus defines [[webtags|marker tokens called web tags]] that can be incorporated in template files that it processes.  
**When it is processing these templates, whenever those place-holders are encountered Cumulus inserts actual values into its output file that might be a web page or a script file
**Those inserted values are derived from processing information supplied from your weather station
**Other content from the template file is inserted unchanged (apart from encoding in format defined by settings) into the output file.
 
== Standard web pages ==
 
*The standard web templates provided with each flavour of Cumulus each use some of these web tags and after processing them Cumulus will generate HTML pages that can be uploaded to a web site.
*The standard web templates provided with each flavour of Cumulus each use some of these web tags and after processing them Cumulus will generate HTML pages that can be uploaded to a web site.
*If you are customising your web site, then you might choose to use script to produce the HTML you want on your web site, instead of asking Cumulus to process templates, but you still need a way to get the values to those scripts:
 
*#this page describes a way to have cumulus process all the web tags that it defines, in one or more template files that are uploaded at the appropriate time interval for the updating of the web tags contained,
== Customised web pages ==
*#and make the resulting values available in script variables for you to use anywhere on your web site in other files
*If you are customising your web site, then you might choose to use script running on your web server to produce the HTML you want on your web site, (instead of asking Cumulus to process templates and upload the resulting output web pages), but you still need a way to get the derived values that Cumulus calculates locally into those web based scripts:
*#this page describes a way to have '''Cumulus process all the web tags''' that it defines, in one or more template files that are uploaded at the appropriate time interval for the updating of the web tags contained,
*#and make the resulting values available in '''script variables''' for you to use anywhere on your web site in other files
*# these other files can be resident on your web server, they never need to be updated locally (and uploaded) as they do not need to be processed first locally.
*# these other files can be resident on your web server, they never need to be updated locally (and uploaded) as they do not need to be processed first locally.


5,838

edits