karamel / view
view package for karamel
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
pkg:composer/karamel/view
Requires
- karamel/http: v0.2.0
This package is not auto-updated.
Last update: 2025-10-23 23:18:41 UTC
README
Installation
- You should define that constant variables
define('KM_VIEW_BASE_PATH',''); define('KM_VIEW_DIST_PATH',''); define('KM_VIEW_DELIMETER','');
- You can get instance of
ViewwithgetInstance()method$view = \Karamel\View\View::getInstance();
Helpers Method
view($viewName,$variables)return compiled view to output
implemented commands
- if
- else
- elseif
- endif
- for
- endfor
- foreach
- endforeach
- while
- endwhile
- break
- continue
- isset
- endisset
- include
- section
- endsection
- extends
- yield
- switch
- case
- endswitch
- push
- component