refactor nkode_authentication_template.md
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# nKode Authentication
|
||||
Play around with the code in [this](http://sesolgit/Repository/Blob/92a60227-4ef9-4196-8ebb-595581abf98c?encodedName=main&encodedPath=nkode_tutorial.ipynb) jupyter notebook.
|
||||
# README
|
||||
Play around with the code in /notebooks
|
||||
|
||||
## Customer Creation
|
||||
Before creating a user, a customer generates random properties and set
|
||||
@@ -33,14 +33,15 @@ def render_nkode_authentication(data: dict):
|
||||
env = Environment(loader=file_loader)
|
||||
|
||||
# Load the template
|
||||
template = env.get_template('nkode_authentication_template.md')
|
||||
template = env.get_template('readme_template.md')
|
||||
|
||||
print(os.getcwd())
|
||||
# Render the template with the data
|
||||
output = template.render(data)
|
||||
|
||||
# Print or save the output
|
||||
output_file = os.path.expanduser("~/Desktop/nkode_authentication.md")
|
||||
# output_file = os.path.expanduser("~/Desktop/nkode_authentication.md")
|
||||
output_file = '../README.md'
|
||||
with open(output_file, 'w') as fp:
|
||||
fp.write(output)
|
||||
print("File written successfully")
|
||||
Reference in New Issue
Block a user