Php webtags: Difference between revisions

182 bytes added ,  16:23, 26 June 2020
m
Line 4: Line 4:
== What are web tags for? ==
== What are web tags for? ==


*Cumulus defines [[webtags|marker tokens called web tags]] that can be incorporated in template files that it processes.  
#Cumulus defines [[webtags|marker tokens called web tags]], each of these represents an item it can report.
**When '''Cumulus 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
#You write a template file and Cumulus will process it creating HTML, JSON, JavaScript, PHP or whatever type of '''Output file''' you want.
**Those inserted values are derived from processing information supplied from your weather station
#You also define what encoding format Cumulus is to use for this output file, most modern files will use "utf-8", but Cumulus also allows  ISO-8859-1 encoding.
**'''Other content''' from the template file is inserted ''unchanged'' (apart from encoding in format defined by settings) into the '''output file'''.
#As '''Cumulus is processing these templates''', it parses the text, copying most text straight to that  output file, but whenever those place-holders are encountered Cumulus inserts actual values instead of the web tag into that output file.
#*Those inserted values are derived from processing information supplied from your weather station


== Standard web pages ==
== Standard web pages ==
5,838

edits