Questions tagged [fmpp]

FMPP is a general-purpose text file preprocessor tool that uses FreeMarker templates.

FMPP uses FreeMarker templates to generate static websites, source code or any text files. FMPP is extendable with Java classes to pull data from any data sources (e.g. XML, databases, CSV) and embed these data into the generated files.

23 questions
0
votes
2 answers

Exclude processing a folder (but copy it) with fmpp

I am using FMPP to build my website and recently have run into an issue. When trying to build my project (with gradle) it bombs out reading a file within PHPMailer. Is there a way to ignore processing that folder with FMPP but still copy it to my…
Ed Dunn
  • 1,152
  • 3
  • 11
  • 27
0
votes
1 answer

Use fmpp command line parameter in template

I have some configuration templates which use FMPP to generate the real runtime config files based upon info in a csv and properties file (defined in config.fmpp). I want to be able to configure a second cluster server for the same task using the…
Frank
  • 1
0
votes
0 answers

Can gulp-freemarker be used in a gulp build to address what fmpp.tools.AntTask does in an ant build?

new here, so I hope this question is adequate. We have a an ant build file that runs a task to preprocess html template files. Here is the snippet from the build file.
K. Cross
  • 1
  • 2
0
votes
1 answer

FreeMarker FMPP Failed to evaluate function "csv"

Using FMPP version 0.9.15, I'm following the documentation examples to pull data from a CSV file. If I use command line with config.fmpp: sourceRoot: src outputRoot: out data: {tdd(data/style.tdd), birds:csv(data/birds.csv)} Or ANT config:
Bron
  • 1
0
votes
1 answer

FMPP: How to set a Freemarker variable from a BeanShell script

Is it possible to set one or more freemarker variable in a case like: <#assign test=pp.loadData('eval', ' a="test1"; b="test2"; return "test";')> and having access to a and b in the freemarker script ?
PPH
  • 78
  • 1
  • 4
0
votes
1 answer

using fmpp/ant to build a single XML document from individual files

I am in the process of moving a lot of imperative utilities into apache-ant builds, and I am having a bit of difficulty coming up with a strategy for a specific use case. Let's say I have a document defined like so: document.xml
drkstr101
  • 760
  • 1
  • 6
  • 23
0
votes
1 answer

How to include FMPP as a maven dependency not as a plugin

I want to write a FMPP Front End application but the official documentation do not explains how to include the FMPP library in a maven project, but the plugin. So i want to know how to include the library so i can extend the fmpp.setting.Settings;…
EliuX
  • 11,389
  • 6
  • 45
  • 40
0
votes
1 answer

How to build a FTL template for a dynamic layout?

I'm building a freemarker template to generate a jsp view. Using a layout in 2 columns where each field in a form is floating and occupies the entire width of the column. Each field type is in a independent FTL to easily add and remove fields. FTL…
Aegis
  • 113
  • 7
  • 27
1
2