What is the best way to define new attribute macros in the Nette Framework?
Moreover, would it be possible to do so in the config file?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
define your own macro is really simple in Nette Framework,
first you must create MacroSet:
then create new Macro with args:
And solution for your second question:
and in config.neon you can register your macroSet: