mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
fixes cycles in template imports
This commit is contained in:
parent
2d6173a631
commit
81e3acd599
3 changed files with 4 additions and 5 deletions
|
@ -1,5 +1,6 @@
|
||||||
from anki.template.template import Template
|
from .template import Template
|
||||||
from anki.template.view import View
|
from . import furigana; furigana.install()
|
||||||
|
from . import hint; hint.install()
|
||||||
|
|
||||||
def render(template, context=None, **kwargs):
|
def render(template, context=None, **kwargs):
|
||||||
context = context and context.copy() or {}
|
context = context and context.copy() or {}
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
import re
|
import re
|
||||||
from anki.utils import stripHTML, stripHTMLMedia
|
from anki.utils import stripHTML, stripHTMLMedia
|
||||||
from anki.hooks import runFilter
|
from anki.hooks import runFilter
|
||||||
from anki.template import furigana; furigana.install()
|
|
||||||
from anki.template import hint; hint.install()
|
|
||||||
|
|
||||||
clozeReg = r"(?si)\{\{(c)%s::(.*?)(::(.*?))?\}\}"
|
clozeReg = r"(?si)\{\{(c)%s::(.*?)(::(.*?))?\}\}"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from anki.template import Template
|
from .template import Template
|
||||||
import os.path
|
import os.path
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue