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

Support for user-defined sophisticated page creators via plugins #181

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Support for user-defined sophisticated page creators via plugins #181

wants to merge 10 commits into from

Conversation

mudasobwa
Copy link

Whilst the built-in page creator (called via posts new) is likely sufficient for standard blog entries, it could be a great helper for some special post types, like photo publishing. E. g. when I publish the photo to my blog, I really want to run smth like posts new_image ~/Images/Vacation/123456.jpg 'Crocodile eats my leg' and yield the scaffolded markdown with link to image, an alternate text etc. Plus I want the original file to be resized to, say, 500px wide, watermarked, blackjacked and whored (and put to /media folder within all the thumbnails).

Or I may want to run posts publish_new to minimize FTP/SCP traffic.

To accomplish the task I have an amount of plugins, extending base ruhoh posts functionality, written. Now the problem is that the infrastructure is not ready to load those plugins within ruhoh executable. The patch below is to support plugins, having monkeypatched Ruhoh::Resources::Pages::Client with Help_WHATEVER const defined as well as respective methods.

@plusjade
Copy link
Member

Sorry I haven't commented on this. Thank you for sharing your customizations! I will have to study your work to understand the problem better and we can try to implement it into core or at least make a nice official plugin for it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants