Questions tagged [mthaml]
7 questions
1
vote
1 answer
running load_class on mthaml
I'm trying to use load_class to load mthaml as I understood it's necessary for performance reasons.
This is the MtHaml library.
https://github.com/arnaud-lb/MtHaml
It's namespaced everywhere so getting it working with load_class natively hits the…

user391986
- 29,536
- 39
- 126
- 205
0
votes
1 answer
Share templates between React/Vue.js and PHP + HAML
I'm choosing frameworks for my next project and got stuck on a tricky problem: How to share templates between server-side PHP and client-side Javascript?
On server, my application is going to be written in PHP, using Symfony, Twig, and MtHAML. I…

Josef Kufner
- 2,851
- 22
- 28
0
votes
1 answer
Symfony Twig + Haml tag attribute check and attribute script
I have the following pcode written in twig:

Ivan Kuzyshyn
- 165
- 1
- 1
- 7
0
votes
1 answer
Mthaml variable inside class
I'm trying to declare a variable inside a class in mthaml, from what I've read this should do it:
$columns = 3
%div{:class => "columns large-#{$columns}"}
However this prints:

Philip
- 6,827
- 13
- 75
- 104
0
votes
1 answer
Symfony2 mthaml syntax
Situation:
I have to place many scripts in "javascripts" native twig block.
- javascripts 'assets/js/jquery.js' 'assets/js/some1.coffee' 'assets/js/some2.coffee' ... 'assets/js/someN.coffee' output="assets/js/all.js"
%script(…

ZloyPotroh
- 377
- 7
- 20
0
votes
0 answers
executing functions in fuelphp mthaml templates
I installed parser package for fuelphp to have mthaml (https://github.com/arnaud-lb/MtHaml) support in templates. So I created a tamplate and I don't understand how can I run fuelphp helper functions in the mthaml templates.
I'm running haml/twig…

user991
- 1,339
- 2
- 24
- 45
0
votes
1 answer
mthaml processing my php variables inside :javascript
I'm using a PHP port of MTHAML which uses the exact same syntax. How can I tell MTHAML to not touch my variables when I use them inside
https://github.com/arnaud-lb/MtHaml
For instance this
:javascript
if (#{$response)} !== "") {
…

user391986
- 29,536
- 39
- 126
- 205