⚈ Kuopassa.net

Lisää kertomuksia netistä. 摆烂

JSON Feed

It’s about this thing. JSON Feed is like an upgrade to the idea of RSS and Atom and maybe even to Google’s AMP. Now Textpattern has a plugin that generates a JSON Feed of recently published articles. Currently the plugin that I put together, that is kuo_json_feed, offers articles with HTML and not with plain text. It seems that Textpattern saves each article to database in two formats: with Textile and with HTML. So it’s not easy to create a plain text version of articles as it’d require either stripping HTML or Textile tags.

You can find a live demonstration of kuo_json_feed at kuopassa.net/?kuo_json_feed.

The downloadable Textpattern plugin is over here .

About the author