Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuurlijk committed Dec 19, 2018
1 parent 992db26 commit d95af32
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
21 changes: 21 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}
<section>
</section>

```
Will become:
```html
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
data-namespace-typo3-fluid="true">
<section>
</section>
</html>
```
Command:
```bash
php ./typo3migrate.phar fluidNsToHtml ~/tmp/Template.html
```
4 changes: 2 additions & 2 deletions src/TYPO3Migrate/Command/ConvertFluidNamespacesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(<<<EOT
The <info>fluidNsToHtml</info> command converts old Fluid namespaces (brace style) to html tag with attributes.
The <info>fluidNsToHtml</info> command converts old Fluid namespaces (curly brace style) to html tag with attributes.
Convert a file:
<info>php typo3migrate.phar fluidNsToHtml ~/tmp/Partials/Template.html</info>
Expand Down

0 comments on commit d95af32

Please sign in to comment.