How do you know PROCESS 4D TAGS is failing? Have you confirmed that the process variable "tTemplate" actually contains your template?
In other words, does “Document to text” successfully retrieve the template? When the command “Document to text” encounters an error, the command fails silently and returns an empty string. Best regards, Jeremy French > On Apr 28, 2017, at 9:44 AM, Mitchell Shiller via 4D_Tech > <[email protected]> wrote: > > 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] **********************************************************************

