| Author |
Message |
|
| Guest |
Posted: Tue Aug 29, 2006 10:39 pm |
|
|
|
Guest
|
|
| Back to top |
|
| anders_n |
Posted: Tue Aug 29, 2006 11:08 pm |
|
|
|
User
Joined: 28 Feb 2005
Posts: 155
Location: Saltillo, Mexico
|
On 8/29/06, Joel Reymont <joelr1@gmail.com> wrote:
> Are there any for Yaws?
>
yfront in jungerl contains a simple blog backend. I have been playing
with turning into a "real" blog, but it is nowhere near complete.
If You are interested I will publish it somewhere.
Or it would be nice if we could add it as an additional application in the yaws
distribution.
/Anders
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Tue Aug 29, 2006 11:20 pm |
|
|
|
Guest
|
|
| Back to top |
|
| Guest |
Posted: Wed Aug 30, 2006 7:08 am |
|
|
|
Guest
|
Joel Reymont wrote:
> On Aug 30, 2006, at 12:08 AM, Anders Nygren wrote:
>
>> If You are interested I will publish it somewhere.
>
> Yes, please!
>
>> Or it would be nice if we could add it as an additional application
>> in the yaws
>> distribution.
>
> What do we need to do to make it happen?
>
> Also, what does Klacke use to publish the Yaws blog?
>
There is no yaws blog. There really ought to be a proper RSS
feed coming out of http://yaws.hyber.org but I've haven't
yet done that.
I would like to write though, however if I had a yaws blog
it really really should be driven by erlang/yaws itself.
Yaws has RSS support which is just fine, it resides in file
yaws_rss.erl and is written by Tobbe Tornqvist.It is documented
in doc/README.rss (really should go in under www/rss.yaws in order
to become more visible.
Here are the contents of doc/README.rss
---------- snip ---------
[klacke@buzz]www > less ../doc/README.rss
RSS FEED INTERFACE
------------------
RSS is very cool! To see it in action look no further than Firebird 1.0.
Then go to an RSS-enabled site, e.g slashdot.org . Note the little orange
icon down in the right corner of the browser window. Click on the icon
and add the RSS-feed to you personal toolbar. Then click on your toolbar,
on the RSS-bookmark and watch the nice menu of slashdot article-summarys
popping up.
The module yaws_rss.erl provides an RSS store/interface so that
you can RSS enable your application. More documentation can be
found in the yaws_rss.erl file (edoc).
TO CREATE AN RSS FEED
--------------------
Make sure your top page has the corresponding link information
in the 'head' part as shown in the example below:
index.html
==========
<html>
<head>
<link rel="alternate"
title="Example RSS"
href="//localhost:3080/rss.yaws"
type="application/rss+xml>
<title>Example</title>
</head>
<body>
Hello world
</body>
</html>
=========
The link info above refers to a file rss.yaws which
could look something like this:
rss.yaws
========
<erl>
out(A) ->
case yaws_rss:retrieve(test, xml) of
{ok, Xml} ->
{content, "text/xml", head()++Xml++tail()};
_ ->
{content, "text/xml", ""}
end.
head() ->
"<rss version=\"2.0\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\">
<channel>
<title>Exampel RSS feed</title>
<link>http://www.blaha.org/</link>
<description>
Bla bla....
</description>
<language>en</language>".
tail() ->
" </channel>
</rss>".
</erl>
========
To insert RSS items into the feed from your application, you
can write code like:
....
yaws_rss:insert(test, xml, "Yaws now support RSS feeds.",
"http://www.blaha.org/latest_news.html",
"Yaws has now been extended to support....",
"Bill Smith").
....
First comes the application (RSSid) then a tag (these were used in
rss.yaws when we retrieved the RSS content). Then follows the
Title, Link, Description and Creator.
The idea is that several independent application should be able
to use the yaws_rss.erl API without affecting each other. Also,
one application may have several RSS feeds (hence the Tag).
HOW TO CONFIGURE RSS
--------------------
Inside a <server> block you specify the application you want
to produce RSS content as:
<rss>
rss_id = <application>
</rss>
This corresponds to the 'App' argument above and must be
defined by the application in question. So, for example,
the wikie application is using 'wiki' as rss_id.
Other, non-mandatory, configuration parameters are (with
explanation and default values):
<rss>
rss_expire = false | days # expire items, or not (false)
rss_days = <integer> # days until expired
rss_rm_exp = <bool> # remove expired items (false)
rss_max = <integer> # max no.of items stored (infinite)
</rss>
Good luck !
Tobbe
--
Claes Wikstrom -- Caps lock is nowhere and
http://www.tail-f.com -- everything is under control
cellphone: +46 70 2097763
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| tobbe |
Posted: Wed Aug 30, 2006 8:18 am |
|
|
|
User
Joined: 19 Jan 2005
Posts: 274
Location: Stockholm, Sweden
|
Anders Nygren wrote:
> On 8/29/06, Joel Reymont <joelr1@gmail.com> wrote:
>> Are there any for Yaws?
>>
>
> yfront in jungerl contains a simple blog backend. I have been playing
> with turning into a "real" blog, but it is nowhere near complete.
Well, you can see the yfront blog backend in action here:
http://u1.noneg.se/wblog.yaws?action=view
The text is in Swedish but you'll get the idea of
how it can be used.
Cheers, Tobbe
>
> If You are interested I will publish it somewhere.
>
> Or it would be nice if we could add it as an additional application in the yaws
> distribution.
>
> /Anders
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Wed Aug 30, 2006 8:57 am |
|
|
|
Guest
|
|
| Back to top |
|
| Guest |
Posted: Wed Aug 30, 2006 9:00 am |
|
|
|
Guest
|
| On Aug 30, 2006, at 8:07 AM, Claes Wikstr |
|
|
| Back to top |
|
| tobbe |
Posted: Wed Aug 30, 2006 9:04 am |
|
|
|
User
Joined: 19 Jan 2005
Posts: 274
Location: Stockholm, Sweden
|
|
| Back to top |
|
| tobbe |
Posted: Wed Aug 30, 2006 9:16 am |
|
|
|
User
Joined: 19 Jan 2005
Posts: 274
Location: Stockholm, Sweden
|
Joel Reymont wrote:
> On Aug 30, 2006, at 8:07 AM, Claes Wikstr |
|
|
| Back to top |
|
| Ke Han |
Posted: Wed Aug 30, 2006 9:22 am |
|
|
|
User
Joined: 02 Mar 2005
Posts: 107
Location: Shanghai
|
On Aug 30, 2006, at 4:57 PM, Joel Reymont wrote:
>
> On Aug 30, 2006, at 9:17 AM, Torbjorn Tornkvist wrote:
>
>> Well, you can see the yfront blog backend in action here:
>>
>> http://u1.noneg.se/wblog.yaws?action=view
>
> Thanks Tobbe. I think it will need some work before it's production-
> ready. I tried posting a comment and got a blank page at http://
> u1.noneg.se/wblog.yaws?id=1148710944590287.
if you can wait a few months for better blog and wiki apps, we can
probably produce something clean with the new projects that are
coming online for building easier web apps.
This would mean you could harvest markup and other tranformation from
existing blog and wiki erlang projects and plug them into a more
sophisticated reusable app architecture.
I expect to be plugging in some markdown (or similar) content
management into my new app which will be built on an open yaws
centric app structure.
ke han
>
> Of course the comment was posted but I expected to be redirected back
> to the article page.
>
> --
> http://wagerlabs.com/
>
>
>
>
>
>
> ----------------------------------------------------------------------
> ---
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?
> cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Erlyaws-list mailing list
> Erlyaws-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/erlyaws-list
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Wed Aug 30, 2006 9:36 am |
|
|
|
Guest
|
On Aug 30, 2006, at 10:14 AM, Torbjorn Tornkvist wrote:
> Well, I don't know what you mean by dynamic?
Tags are dynamic by nature.
> As it works now you store an rss entry using the yaws_rss interface.
> Then, later, you can extract the entries and have them presented
> as an RSS feed.
Right, so I can have thousands of feeds based on different apps and
tag combinations.
What does a RSS url look like for yfront?
The URL for my blog looks like this http://feeds.feedburner.com/
The_Erlang_Fix and I would like to give people the ability to have
the same. How can I do this?
> The dynamic part now is that you can store new entries in run-time
> whenever you'd like. Or did you have something else in mind ?
No, this is it.
Thanks, Joel
--
http://wagerlabs.com/
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Wed Aug 30, 2006 9:38 am |
|
|
|
Guest
|
|
| Back to top |
|
| tobbe |
Posted: Wed Aug 30, 2006 11:02 am |
|
|
|
User
Joined: 19 Jan 2005
Posts: 274
Location: Stockholm, Sweden
|
Joel Reymont wrote:
> On Aug 30, 2006, at 10:14 AM, Torbjorn Tornkvist wrote:
>
>> Well, I don't know what you mean by dynamic?
>
> Tags are dynamic by nature.
>
>> As it works now you store an rss entry using the yaws_rss interface.
>> Then, later, you can extract the entries and have them presented
>> as an RSS feed.
>
> Right, so I can have thousands of feeds based on different apps and
> tag combinations.
I hope so.
>
> What does a RSS url look like for yfront?
It is all up to you.
Remember, the RSS support is in Yaws already,
the blog plugin exist in yfront. As I wrote in
a separate mail to Joel:
>> The blog stuff in yfront is designed as a general plugin.
>> It doesn't know anything about the site where it is being used.
>>
>> My intention with yfront is to add building blocks that can be used
>> when building any web-site.
See also:
http://www.tornkvist.org/wblog.html
--Tobbe
>
> The URL for my blog looks like this http://feeds.feedburner.com/
> The_Erlang_Fix and I would like to give people the ability to have
> the same. How can I do this?
>
>> The dynamic part now is that you can store new entries in run-time
>> whenever you'd like. Or did you have something else in mind ?
>
> No, this is it.
>
> Thanks, Joel
>
> --
> http://wagerlabs.com/
>
>
>
>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Wed Aug 30, 2006 11:32 am |
|
|
|
Guest
|
> I would like to write though, however if I had a yaws blog
> it really really should be driven by erlang/yaws itself.
I'd just like to make a tiny suggestion: if there's no suitable
blogging engine for Yaws soon (as in a week, let's say), then you can
start using a different blogging engine (e.g. wordpress or typo) and
then switch to Yaws. Just make sure that both blog engines keep the
same URL structure.
Yaws is a very important component of the Erlang revolution -- --
and I know many people who read my blog will crave any piece of
information about Yaws developments. It would be a shame to keep them
waiting for a long time.
Best,
Yariv
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Wed Aug 30, 2006 11:47 am |
|
|
|
Guest
|
On Aug 30, 2006, at 12:32 PM, Yariv Sadan wrote:
> I'd just like to make a tiny suggestion: if there's no suitable
> blogging engine for Yaws soon (as in a week, let's say), then you can
> start using a different blogging engine (e.g. wordpress or typo) and
> then switch to Yaws. Just make sure that both blog engines keep the
> same URL structure.
Well, I already have a perfectly fine blog (below) and that's where
I'll be posting.
I'd like to focus on functionality of my offer, tools will come second.
--
http://wagerlabs.com/
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
|
|
All times are GMT
Page 1 of 2
Goto page 1, 2 Next
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|