I used to use Lodash template()
until I give up due to the verbosity of the interpolation delimiters used. They're a pain, especially when it's a simple string I want to build. Stylistically, I don't want to resort to string concatenation in my code, but, it turned out to be the better option. You can use Lodash for simple string-building scenarios such as these — it just requires a little tweaking.
Showing posts with label interpolation. Show all posts
Showing posts with label interpolation. Show all posts
Tuesday, July 8, 2014
Simpler Lodash Templates
Subscribe to:
Posts
(
Atom
)