Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uzulla/twig-mimic
Tool for Twig template coder
https://github.com/uzulla/twig-mimic
Last synced: about 1 month ago
JSON representation
Tool for Twig template coder
- Host: GitHub
- URL: https://github.com/uzulla/twig-mimic
- Owner: uzulla
- License: mit
- Created: 2020-02-07T10:16:37.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-09-30T20:24:45.000Z (over 2 years ago)
- Last Synced: 2023-03-23T12:14:18.752Z (almost 2 years ago)
- Language: PHP
- Size: 42 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Twig mimic
For Twig template creator.
# NOTICE
This tool is TOO DANGER. DON'T use public service. use in ONLY development.
# install and start
```
$ make setup
$ make start
# open http://127.0.0.1:8080
```# how to write template(and data)
- write twig template in `/template`. (ex: `Hoge.twig`)
- write ViewModel(Data) in `/src/ViewState/`. (ex: `Hoge.php`)
- `make start` and open `http://localhost:8080/Hoge`> `Sample` is sample.
# auto loading
You don't need write route settings.
URL `/Someting` will be map to `/template/Something.twig`, `/src/ViewState/Something.php`(`\Project\ViewState\Something` class)
also `/Some/Thing` => `/template/Some/Thing.twig`, `ViewState\Some\Thing`
> `/` is special, you can't use.
# LICENSE
MIT