Skip to content

Code cleanup in page generator #7

@jillh510

Description

@jillh510

Seems like you could combine get_twitter_embed_code and get_instagram_embed_code into one data-driven function,and even control the whole shebang with a dict keyed by content_type, with fields for content_container, oembed_endpoint, etc. Then adding a new input type would just mean adding a new entry to the dict.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions