v14 OSX
HTML Template:
<!DOCTYPE html>
<html>
<body>
<p>
<!--#4DTEXT tData-->
</p>
</body>
</html>
Method:
C_TEXT(tHTML;tTemplate;$tPathname;tData)
$tPathname:=Get 4D folder(Current resources folder)+"Templates"+":"+"Test
Template.html"
tTemplate:=Document to text($tPathname)
tData:="Hello There"
PROCESS 4D TAGS(tTemplate;tHTML)
Result:
The Template is loaded but tData is not replaced with “Hello There”. i.e. tHTML
is the same as
What am I missing?
Thanks
Mitch
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************