-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/feature/new_renderer' into featu…
…re/new_renderer
- Loading branch information
Showing
37 changed files
with
11,587 additions
and
468 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
from .view import DescriptivePageView | ||
from .view import DefaultJinjaPageView |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
class Renderer(object): | ||
# class Renderer(object): | ||
|
||
@classmethod | ||
def validate_input(cls, *args, **kwargs): | ||
raise NotImplementedError | ||
# @classmethod | ||
# def validate_input(cls, *args, **kwargs): | ||
# raise NotImplementedError | ||
|
||
@classmethod | ||
def _render_to_json(cls, *args, **kwargs): | ||
raise NotImplementedError | ||
# @classmethod | ||
# def _render_to_json(cls, *args, **kwargs): | ||
# raise NotImplementedError | ||
|
||
@classmethod | ||
def render(cls, *args, **kwargs): | ||
raise NotImplementedError | ||
# @classmethod | ||
# def render(cls, *args, **kwargs): | ||
# raise NotImplementedError | ||
|
||
#!!! Move this out to view_model.__init__ | ||
# #!!! Move this out to view_model.__init__ | ||
|
||
|
||
class ViewModelRenderer(Renderer): | ||
# class ViewModelRenderer(Renderer): | ||
|
||
@classmethod | ||
def render(cls, *args, **kwargs): | ||
cls.validate_input(*args, **kwargs) | ||
cls._render_to_json(*args, **kwargs) | ||
raise NotImplementedError | ||
# @classmethod | ||
# def render(cls, *args, **kwargs): | ||
# cls.validate_input(*args, **kwargs) | ||
# cls._render_to_json(*args, **kwargs) | ||
# raise NotImplementedError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from .value_list_content_block import ValueListContentBlock | ||
from .table_content_block import TableContentBlock | ||
from .graph_content_block import GraphContentBlock | ||
from .bullet_list_content_block import BulletListContentBlock | ||
from .value_list_content_block import ValueListContentBlockRenderer | ||
from .table_content_block import TableContentBlockRenderer | ||
from .graph_content_block import GraphContentBlockRenderer | ||
from .bullet_list_content_block import PrescriptiveBulletListContentBlockRenderer |
Oops, something went wrong.