alanshaw / grunt-include-replace

Grunt task to include files and replace variables. Allows for parameterised includes.
MIT License
200 stars 45 forks source link

Reference in multiple steps #80

Open jjangga0214 opened 6 years ago

jjangga0214 commented 6 years ago

It seems grunt-include-replace does not support deep reference. The code below fails. Does it have an update plan for this feature?

<!--base.html-->
<ul>
    <li>@@a</li>
    <li>@@b</li>
    <li>@@c</li>
</ul>
<!--foo.html-->
@@include('base.html', {
"a": @@a,
"b": @@b,
"c": "This is constant"})
<!--bar.html-->
@@include('foo.html', {
"a": "This is constant",
"b": "This is constant"})
P.S

Thanks for letting me enjoy replacing variables anyway :)