Preserve icon kwargs
Allow other icon instances to reuse the arguments like the symbol. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -96,6 +96,7 @@ class FontAwesomeLayersDriver(IconDriver):
|
||||
|
||||
class Icon(object):
|
||||
def __init__(self, driver_name, **kwargs):
|
||||
self.kwargs = kwargs
|
||||
self.driver = IconDriver.get(name=driver_name)(**kwargs)
|
||||
|
||||
def render(self, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user