Requesting support for current_macro_name special variable

Albert Kam <[email protected]> Fri, 10 Jul 2015 10:46:07 +0700
Newsgroups gmane.comp.web.freemarker.user
Message-ID <CAMT20g8Dv6Q6jA=jF+4YnEbPSei8KCXkS4h6qJRy0_fRqKzSpg@mail.gmail.com>
--===============5855951584273046369==
Content-Type: multipart/alternative; boundary=001a1147f09e4d593d051a7d3618

--001a1147f09e4d593d051a7d3618
Content-Type: text/plain; charset=UTF-8

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)

--001a1147f09e4d593d051a7d3618
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hello,<div><br></div><div>Would it be possible to add curr=
ent_macro_name, just like the current_template_name, to the special variabl=
e list ?</div><div><br></div><div>For those who needs the reference: <a hre=
f=3D"http://freemarker.org/docs/ref_specvar.html">http://freemarker.org/doc=
s/ref_specvar.html</a></div><div><br></div><div>In my use case, some string=
 values within the macro is always the same as the macro name, and i&#39;d =
like to avoid keeping them in sync.</div><div><br></div><div>Thank you,</di=
v><div>Albert<br clear=3D"all"><div><br></div>-- <br><div class=3D"gmail_si=
gnature">Do not pursue the past. Do not lose yourself in the future. <br>Th=
e past no longer is. The future has not yet come. <br>Looking deeply at lif=
e as it is in the very here and now, <br>the practitioner dwells in stabili=
ty and freedom.<br>(Thich Nhat Hanh)</div>
</div></div>

--001a1147f09e4d593d051a7d3618--


--===============5855951584273046369==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
--===============5855951584273046369==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user

--===============5855951584273046369==--