🧱 General idea

Link Generator renders a landing via Jinja2 and saves the result as index.php.
It uses KeepUndefined: unknown variables stay as {{ var }} — useful for PHP snippets and placeholders.

🧩 Template (HTML/CSS)

  • HTML — required
  • CSS — optional (available via {{ css }})

Available template variables

  • {{ title }} — landing title
  • {{ favicon }} — favicon path (media/<file>)
  • {{ code_snippet }} — injected code snippet
  • {{ buttons_container }} — rendered buttons container
  • {{ click_link }}, {{ double_link }}, {{ postback_link }}, {{ back_link }}, {{ background_click_link }}
  • {{ css }} — CSS from the Template field
  • {{ template_background }} — background path (media/<file>)
  • {{ <tag> }} — JS file path, where <tag> comes from JavaScriptFile

🧩 ButtonsContainer (HTML/CSS)

  • If HTML is not provided, a base template is used (labels + buttons in order)
  • With custom HTML you must insert {{ label_1 }}, {{ button_1 }}, etc.

Container variables

  • {{ label_1 }}, {{ label_2 }}
  • {{ button_1 }}, {{ button_2 }}
  • {{ click_link }}, {{ double_link }}, {{ postback_link }}, {{ back_link }}, {{ background_click_link }}
  • {{ background_image }} — container background URL

🎯 Buttons and labels

Label: text, color, style (bold/italic/underline/strikethrough)
Button: text, color, background (color/image)

Base button HTML uses:

  • href = {{ double_link }}
  • onClick opens {{ click_link }}

For per‑button links use ButtonClick.

⚠️ Notes

  • Unknown variables are preserved — useful for PHP
  • The output file on hosting is always index.php