Skip to content

Instantly share code, notes, and snippets.

@arutnik
Created November 5, 2017 19:57
Show Gist options
  • Select an option

  • Save arutnik/e3e7ff517d8ff8b10e9bb727eceac578 to your computer and use it in GitHub Desktop.

Select an option

Save arutnik/e3e7ff517d8ff8b10e9bb727eceac578 to your computer and use it in GitHub Desktop.
SFA Part 3: Injecting controller name
#Only Added/modified lines shown
parser.add_argument("--controller", help="")
controller = args.controller
html = html.replace('<html lang="en">', '<apex:page showheader="false" sidebar="false" standardStylesheets="false" controller="' + controller + '" >' )
html = html.replace('$SFCONTROLLER', controller)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment