Is there a gain to it beyond just accumulating the arguments then calling 'render' once they are all accumulated?
On Sunday, April 2, 2017 at 9:34:01 PM UTC-6, Attila Gulyas wrote: > > Hi, > > Would there be a need for something like this? Or is there already > something like this? > > An example: > > s = "<%= a %>, <%= b %> and another <%= c %>"EEx.partial_eval_string(s)#> > "<%= a %>, <%= b %> and another <%= c %>"EEx.partial_eval_string s,[b: > "pie", c: "one"]#> "<%= a %>, pie and another one" > > > The basic implementation: > toraritte@21c4c9f > <https://github.com/toraritte/elixir/commit/21c4c9f4a326cd6e6b141dd795848d7039b6c294> > > It would be pretty easy to apply it to the `eval_*`s and > `function_from_*`s but it is just as easy to write a wrapper around them in > a current project. > > Thank you! > Attila > -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/2d7655f0-6ccc-4337-a1f5-3a67583bff2b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
