Skip to content

Commit

Permalink
Merge pull request #111 from djibal/djibal-patch-1
Browse files Browse the repository at this point in the history
Merge feature  to add some (Python Framework) solution examples template.py
  • Loading branch information
djibal authored Sep 24, 2021
2 parents 1434a82 + a9ceb0e commit 96a9c8d
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions templates/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import html

def my_template(page, content, render):
if render:
my = html.str(render="page")
print(template = html.render({{CONTENT}}))
return f'render {render} content'

if content:
my = html.str(content="render")
print(template = html.content({{CONTENT}}))
return f'content {content} page'

if page:
my = html.str(page="content")
print(template = html.page({{CONTENT}}))
return f'render {page} page'

def __init__(my):
if (page == my.page) and (content == my.content) and (render == my.render):
return True
return False

def __str__(self):
print(self.content +"|"+ self.page +"|"+ self.render)


def template(items):
for items in my:
print(items)

my_templates = my_template("Render","Content","Page")
print(my_templates[:])

0 comments on commit 96a9c8d

Please sign in to comment.