Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

exp:exptemplateconvertdiff

Gibt die Konvertierung eines Templates in eine andere Engine auf stdout aus, ohne etwas zu schreiben (--file, --to-engine, --from-engine).

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/commands/exptemplateconvertdiff.md

On this page

This page is a translation. Read the English original

exp:exptemplateconvertdiff

Gibt die Konvertierung eines Templates in eine andere Engine auf stdout aus, ohne etwas zu schreiben (--file, --to-engine, --from-engine).

Skript bin/php/exptemplateconvertdiff.php, Code in kernel/private/classes/commands/exptemplateconvertdiff.php. Führen Sie es im Wurzelverzeichnis der Installation aus, als der Benutzer, unter dem der Webserver läuft:

./console exp:exptemplateconvertdiff --help
./console exp:template:convert:diff --help
php bin/php/exptemplateconvertdiff.php --help

Hilfetext

Was --help ausgibt, so wie der Befehl es schreibt:

Print the conversion of one template to another engine, without writing anything
The engine of --file follows from its ending unless --from-engine is given. The converted text goes
to stdout, the NOTE lines of what could not be converted exactly to stderr; with --against=<file> the
converted text is compared with that file (a target written before and perhaps edited by hand) and
the differences are printed as a unified diff.

./console exp:template:convert:diff --file=design/<design>/templates/<name>.tpl --to-engine=twig
./console exp:template:convert:diff --file=<name>.tpl --to-engine=twig --against=<name>.twig

Exit code: 0 converted (no differences with --against); 1 notes, a check failed, or differences;
2 wrong options; 3 the conversion is not available.

Optionen

OptionWertHilfe
--fileerforderlichdas zu konvertierende Template
--from-engineerforderlichseine Engine: tpl, stpl oder twig (Standard: aus der Dateiendung)
--to-engineerforderlichdie Engine, in die es konvertiert wird: tpl, stpl oder twig
--againsterforderlichdie Konvertierung mit dieser Datei vergleichen und einen Unified Diff ausgeben

Aus den Optionsdefinitionen im Code gelesen (startup(), getOptions(), options() oder ezcConsoleOption). Jedes Skript nimmt außerdem die Standardoptionen des Skript-Frameworks (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).

Siehe auch


Erzeugt von ./console exp:help:examples --language=ger-de aus bin/php/exptemplateconvertdiff.php, kernel/private/classes/commands/exptemplateconvertdiff.php. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x