List Info

Thread: call/yield template, extras, syntax suggestions, autoclose




call/yield template, extras, syntax suggestions, autoclose
country flaguser name
United States
2007-10-12 10:04:31
Hi,

I have some questions / suggestions.


In haml, I'd like to be able to "call" a template,
something like
this:

call :my_wrapping_template do
  ... (inner template)
end

The wrapping template would be a header + footer, for
example, that
would "yield" my inner template in between; this
could be recursive
"bottom-up". The wrapping template could be
another .haml file or
possibly a template defined in the same file as the inner
template, so
it would need some syntax to define the template.
Is this already possible by hacking with haml current
syntax?


Haml syntax is lean, but sometimes I have lots of static
attributes
and writing them with a hash is longer and less clear/usual
than the
traditionnal attr="value". Is there another way?
Could we use the
[attr="value"] syntax if properly patched?


In sass, I feel that the "!" notation is a bit
awkward: I'm used to
read it as "not". Couldn't we use another char,
like '$'?


Fianlly, in haml, could the default autoclose also include
"input" and
"textarea"? (no big deal, I know)


Thank you.
--
jt


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Haml" group.
To post to this group, send email to hamlgooglegroups.com
To unsubscribe from this group, send email to
haml-unsubscribegooglegroups.com
For more options, visit this group at http://grou
ps.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )