Skip to content

Commit e9d5302

Browse files
committed
✨: add engine text to resources, make public
1 parent 8b9c3e1 commit e9d5302

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

reflux/__init__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
from reflux.theme import Theme
22

3-
__all__ = ["Theme"]
3+
from reflux.resources import shelf as Resources
4+
5+
__all__ = ["Theme", "Resources"]
46
__author__ = "frissyn"
57
__version__ = "1.0.1"
68
__doc__ = "Python package for generating IDE themes on Replit"

reflux/resources/__init__.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ def __init__(self):
1717

1818
if file.is_file() and file.name.endswith(".txt"):
1919
contents = open(file).read()
20-
jar = self.create_var_jar(contents)
20+
jar = self._create_var_jar(contents)
2121

2222
jar["_keys"] = list(jar.keys())
2323

2424
self.__setattr__(name, jar)
25+
26+
self.engine = "javascript:" + open(f"{path}/../engine/reflux.min.js").read()
2527

26-
def create_var_jar(self, contents: str):
28+
def _create_var_jar(self, contents: str):
2729
jar = {}
2830

2931
for line in contents.split(";\n"):

0 commit comments

Comments
 (0)