Skip to content

Commit

Permalink
Update custom_tags.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavr2003 authored Jul 16, 2021
1 parent 6191814 commit 18ff76b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/sierra/custom_tags.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Enables the user to create custom tags based on their use cases
# Still work in progress
import functools
import traceback
Expand Down Expand Up @@ -29,9 +30,6 @@ def wrapper(**kwargs):

name = func.__name__

# for key in kwargs.items():
# if key = 'some':
# print('')

if kwargs:

Expand Down Expand Up @@ -103,11 +101,11 @@ def __call__(self, **kwargs):


@tag
def test(**kwargs):
def meta(**kwargs):
pass

test(_class='some_class', some='loz', foo='bar')
# <test class='some_class' some='loz' foo='bar'/>
meta(name="viewport", content="width=device-width, initial-scale=1.0")
# <meta name="viewport" content="width=device-width initial-scale=1.0"/>

@tag
def script(text, **kwargs):
Expand Down

0 comments on commit 18ff76b

Please sign in to comment.