Skip to content
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

Adding HTML content like Adsense ads #16

Open
mariaregan opened this issue Mar 20, 2019 · 4 comments
Open

Adding HTML content like Adsense ads #16

mariaregan opened this issue Mar 20, 2019 · 4 comments
Assignees
Labels

Comments

@mariaregan
Copy link

Sir, I would like to add HTML widget like Adsense ads. But, there is no such widget. Also, I want to add code inside tag. I think there is no option for that. Please help me.

@azaslonov azaslonov self-assigned this Mar 20, 2019
@azaslonov
Copy link
Member

Hi @mariaregan. thank you for feedback. I think that AdSense widget would be a good addition to to the list, we'll include it into our scope of works.

Regarding the code inside a tag: one of the key concepts in Paperbits is a separation of data (JSON) from its presentation (HTML, JS, CSS). You can think of it as Markdown, but more sophisticated (since we render not only text but also layouts, widgets, styles, etc.). However, nothing prevents you from creating a widget accepting free HTML/scripts as configuration.

Please check back to the documentation and paperbits-demo repo later this week, we're going to add "How to create a widget" guide and a widget scaffold.

@azaslonov
Copy link
Member

@mariaregan, as I mentioned, the article is coming, but the scaffold has been added already. If you pull the latest changes and launch it, you will see it in "Add widget" list.

@mariaregan
Copy link
Author

mariaregan commented Mar 21, 2019 via email

@azaslonov
Copy link
Member

That's right, it's just a scaffold for your own widget where you can replace HTML content with your own, e.g. with the AdSense script. Also, please read about Widget Anatomy to better understand how it works.

@azaslonov azaslonov added this to the Paperbits 1.0.0 milestone Jan 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants