diff --git a/Readme.md b/Readme.md index ce9e6f5..32b0b3a 100644 --- a/Readme.md +++ b/Readme.md @@ -23,8 +23,29 @@ composer require --update-no-dev "michielroos/typo3migrate:*" ## Usage Current tools: * xml2xlf +* fluidNsToHtml ### Convert xml to xlf Convert a xmllang file to xlf. ```bash php ./typo3migrate.phar xml2xlf ~/tmp/localllang_db.xml ``` +### Convert old Fluid namespaces +Convert old Fluid namespaces {brace style} to html tag with attributes. +```html +{namespace f=TYPO3\CMS\Fluid\ViewHelpers} +
+
+ +``` +Will become: +```html + +
+
+ +``` +Command: +```bash +php ./typo3migrate.phar fluidNsToHtml ~/tmp/Template.html +``` diff --git a/src/TYPO3Migrate/Command/ConvertFluidNamespacesCommand.php b/src/TYPO3Migrate/Command/ConvertFluidNamespacesCommand.php index fbe3df3..5397a56 100644 --- a/src/TYPO3Migrate/Command/ConvertFluidNamespacesCommand.php +++ b/src/TYPO3Migrate/Command/ConvertFluidNamespacesCommand.php @@ -46,12 +46,12 @@ protected function configure() { $this ->setName('fluidNsToHtml') - ->setDescription('Convert old Fluid namespaces (brace style) to html tag with attributes') + ->setDescription('Convert old Fluid namespaces (curly brace style) to html tag with attributes') ->setDefinition([ new InputArgument('template', InputArgument::REQUIRED, 'File to convert') ]) ->setHelp(<<fluidNsToHtml command converts old Fluid namespaces (brace style) to html tag with attributes. +The fluidNsToHtml command converts old Fluid namespaces (curly brace style) to html tag with attributes. Convert a file: php typo3migrate.phar fluidNsToHtml ~/tmp/Partials/Template.html