Dec 13, 2023 Hi All! With great pleasure i want to present the freemarker library. Freemarker page: What is Apache FreeMarker®? Java template engine; generates HTML web pages, e-mails, configuration files, source code, etc. from template files and the data your application provides. freemarker.apache.org Download latest version here: Download / Maven freemarker.apache.org Example on how to use it setup: Code: public be_free As Freemarker 'Process_Globals be_free.Initialize be_free.DefaultEncoding = "UTF-8" be_free.DirectoryForTemplateLoading = File.DirApp & "/freemarker_templates" be_free.LazyAutoImports = True be_free.addAutoImport("fun", "functions.ftl") be_free.exposeFields be_free.addSharedVariable("base_url", "http://localhost:3000") usage: Code: Dim t As Template = main.be_free.getTemplate(freemarker_template) resp.CharacterEncoding = "UTF-8" resp.Write(t.stdOut(root)) Do you want to create a webapp but are afraid of all the set up needed? I am offering a B4x focused VPS! B4x Focused VPS Hello everyone! In the past few years i have been working with many people here in the forum with a wide range of projects yet all of them have in common that they need a server, sometimes for a simple JRDC2 and other times for a full fledged Jserver implementation. Well today i am offering a... www.b4x.com It comes with free consulting You can look at a full fledged example with TailwindCSS + HTMX + Freemarker and of course B4x here: HTMX + TailwindCSS + Freemarker Hey there! Attached you will find an example on how to use these technologies with our beloved B4x. Find here the Freemarker library: https://www.b4x.com/android/forum/threads/freemarker-library.157971/ I plan on contacting the HTMX author and ask him to post this example here... www.b4x.com Attachments FreemarkerWrapper.zip FreemarkerWrapper.zip 4.8 KB · Views: 407 Last edited: Dec 13, 2023 Click to expand...
Hi All! With great pleasure i want to present the freemarker library. Freemarker page: What is Apache FreeMarker®? Java template engine; generates HTML web pages, e-mails, configuration files, source code, etc. from template files and the data your application provides. freemarker.apache.org Download latest version here: Download / Maven freemarker.apache.org Example on how to use it setup: Code: public be_free As Freemarker 'Process_Globals be_free.Initialize be_free.DefaultEncoding = "UTF-8" be_free.DirectoryForTemplateLoading = File.DirApp & "/freemarker_templates" be_free.LazyAutoImports = True be_free.addAutoImport("fun", "functions.ftl") be_free.exposeFields be_free.addSharedVariable("base_url", "http://localhost:3000") usage: Code: Dim t As Template = main.be_free.getTemplate(freemarker_template) resp.CharacterEncoding = "UTF-8" resp.Write(t.stdOut(root)) Do you want to create a webapp but are afraid of all the set up needed? I am offering a B4x focused VPS! B4x Focused VPS Hello everyone! In the past few years i have been working with many people here in the forum with a wide range of projects yet all of them have in common that they need a server, sometimes for a simple JRDC2 and other times for a full fledged Jserver implementation. Well today i am offering a... www.b4x.com It comes with free consulting You can look at a full fledged example with TailwindCSS + HTMX + Freemarker and of course B4x here: HTMX + TailwindCSS + Freemarker Hey there! Attached you will find an example on how to use these technologies with our beloved B4x. Find here the Freemarker library: https://www.b4x.com/android/forum/threads/freemarker-library.157971/ I plan on contacting the HTMX author and ask him to post this example here... www.b4x.com