New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugins / Extensions #13
Comments
|
Для шаблонов решил использовать метки вида For templates, I decided to use labels like in place of which “subtemplates” registered when installing extensions will be inserted, or labels will be deleted if such “subtemplates” are not registered. Пример/Example:
изменение из расширения/change from extension:
скомпилированный шаблон/compiled template:
|
Какие варианты? / What are the options?
Вариантов у меня, кот наплакал / I have few options:
Отрицательная сторона - нужно добавить в код множество вызовом хуков и все эти вызовы стандартизировать / The negative side is that you need to add a lot of hook calls to the code and standardize all these calls;
Расширения содержат измененные классы, эти классы регистрируются в конфиге движка вместо базовых классов / Extensions contain modified classes, these classes are registered in the engine config instead of base classes;
Сразу вижу проблему - два расширения изменяющие один класс будут несовместимы между собой / I immediately see the problem - two extensions that change one class will be incompatible with each other;
Есть идеи? / Any ideas?
The text was updated successfully, but these errors were encountered: