Giter Site home page Giter Site logo

support for multiple channels about bloggy HOT 2 CLOSED

gour avatar gour commented on May 24, 2024
support for multiple channels

from bloggy.

Comments (2)

snoyberg avatar snoyberg commented on May 24, 2024

It shouldn't be particularly complicated, and this would probably be a good way to get your feet wet with Yesod. Firstly, I would add a String record to the Entry datatype called channel, alter the entry parsing code, and just let things flow from there. Ultimately, you'll probably want to provide different atom feeds based on channel, which would probably involve resource patterns like:

/feed/$channel

And coding that would basically involve copying the current feed code and adding a "filter (channel equals desiredChannel)" at the appropriate point. If you want to try it, fork bloggy, and feel free to ask me any questions.

By the way, bloggy is not the most well-written Yesod app I've done. Tweedle probably is the closest to "Yesod best practices," although it's really too early in the game to have such a thing.

from bloggy.

gour avatar gour commented on May 24, 2024

It shouldn't be particularly complicated, and this would probably be a good way to get > your feet wet with Yesod.

He, he...Too bad that I need to continue working with Django stuff to push that site out of the door first...

If you want to try it, fork bloggy, and feel free to ask me any questions.

I'll take a look at the bloggy code, just fo finish the present work.

By the way, bloggy is not the most well-written Yesod app I've done.
Tweedle probably is the closest to "Yesod best practices," although it's really
too early in the game to have such a thing.

Heh, by stabilizing WAI and making Yesod more feature-complete, we'll get 'best practices' as well.

Keep up the good work!

Sincerely,
Gour

from bloggy.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.