I have about 10 building blocks of dynamically generated HTML that fall into a large percentage of the pages on my site (informational sidebars).
I can use the #include statements or define them as macros, both will work.
What's better? I am new to Velocity and am moving the site with JSP.
Why use one against the other? Why is #include when no-arg macro () does the same? Are they handled differently in terms of caching / memory?
( VTL), # , , . ( VTL-), #parse #include - , . , , #define VTL , , . , .
#parse #include , , . #define , / , # define'd , , - .
, , . , . , , .