Skip to content

Commit

Permalink
ZETA-6959: Push through latest code.
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlieGreenman committed Oct 25, 2023
1 parent 627eb79 commit fbb9e6a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/rz/angular/morph-angular-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { deleteHtmlElement } from '../html/delete-html-element/delete-html-eleme
import { prependHtml } from '../html/prepend-html/prepend-html';
import { appendHtml } from '../html/append-html/append-html';
import { addPropertyToHtmlTag } from './add-property-to-html-tag/add-property-to-html-tag';
import { camelCase } from 'lodash';
import posthtml from 'posthtml';

function convertToAngularHtmlAndPrettify(tree: any) {
const transformedTreeInHtml = toHtml(tree)
Expand All @@ -34,6 +34,14 @@ export function createUnifiedTree(htmlString: string | any): any {
return fromParse5(p5ast);
}

function customPlugin(tree: any) {
tree.match({ tag: 'devgen-eureka-seven-global-header' }, (node: any) => {
// Add the attribute to the matched element
node.attrs = { '(sideNavToggle)': 'sideNavToggle()' };
return node;
});
}


// fileToBeAddedToTree is top level
export function morphHtml(editHtmlInput: EditHtmlInput): string {
Expand Down

0 comments on commit fbb9e6a

Please sign in to comment.