Discussion:
[FreeMarker-user] Requesting support for current_macro_name special variable
Albert Kam
2015-07-10 03:46:07 UTC
Permalink
Hello,

Would it be possible to add current_macro_name, just like the
current_template_name, to the special variable list ?

For those who needs the reference:
http://freemarker.org/docs/ref_specvar.html

In my use case, some string values within the macro is always the same as
the macro name, and i'd like to avoid keeping them in sync.

Thank you,
Albert
--
Do not pursue the past. Do not lose yourself in the future.
The past no longer is. The future has not yet come.
Looking deeply at life as it is in the very here and now,
the practitioner dwells in stability and freedom.
(Thich Nhat Hanh)
Continue reading on narkive:
Loading...