Skip to content

Only replaces first instance of variable #3

@adamjw3

Description

@adamjw3

Hi

Moving over from grunt to gulp and replacing grunt-bake with this task

i have the following partial

<partial src="accordion.html" identifier="first"></partial>

accordion.html is

<h2 class="c-accordion__heading heading js-accordion-heading" id="@@identifier-accordion-header-1" role="tab" aria-controls="@@identifier-accordion-panel-1" aria-selected="false" aria-expanded="false">Accordion header 1</h2>

output

<h2 class=" js-accordion-heading" id="first-accordion-header-1" role="tab" aria-controls="@@identifier-accordion-panel-1" aria-selected="false" aria-expanded="false">Accordion header 1</h2>

Does it not work on multiple instances of a variable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions