Skip to content

Instantly share code, notes, and snippets.

@arutnik
Created November 5, 2017 20:17
Show Gist options
  • Select an option

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

Select an option

Save arutnik/f360f7310f9bbe12ac12233310f7400a to your computer and use it in GitHub Desktop.
SFA Part 5: Routing variable injection
#Only added lines shown
parser.add_argument("--pagename", help="")
pageName = args.pagename
inAppPageRoot = 'apex/' + pageName
html = html.replace('$SFPAGEROOT', "'" + inAppPageRoot + "'")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment