text: # manifest read asdasd
  #EXAMPLE CREATING CUSTOM BLOCK EXTENSION (COMPLEX +++)
  # class Jinjasset(Extension):
  #     tags = set(['jinjasset'])
      
  #     def _now(self, dist_folder):
  #         return "hallo !"
  	
  #     def parse(self, parser):
  #         lineno = next(parser.stream).lineno
  #         token = parser.stream.expect(lexer.TOKEN_STRING)
  #         dist_folder = nodes.Const(token.value)
  #         call = self.call_method('_now', [dist_folder], lineno=lineno)
  #         return nodes.Output([call], lineno=lineno)
  import json
  import os
  
  class Jinjasset():
      #SET 0 if is css or set 1 to js
      def test(dist_folder, who):
          dir_path = os.path.dirname(os.path.realpath(__file__))
          with open(dir_path + "/.." + dist_folder + "/manifest.json") as json_file:
              data = json.load(json_file)
              my_styles = []
              my_js = []
              for p in data:
                  extension = os.path.splitext(data[p])[1]
                  if(extension == ".js"):
                      my_js.append('<script src="{0}" type="module"></script>'.format(dist_folder[1:] + "/" + data[p]))
                  elif(extension == ".css"):
                      my_styles.append('<link rel=stylesheet type=text/css href="{0}">'.format(dist_folder[1:] + data[p]))
          if who == 0:
              return "".join(my_styles)
          elif who == 1:
              return "".join(my_js)