|
|
| Author |
Message |
|
| Guest |
Posted: Sun Jun 08, 2008 8:28 pm |
|
|
|
Guest
|
|
| Back to top |
|
| Guest |
Posted: Sun Jun 08, 2008 8:52 pm |
|
|
|
Guest
|
|
| Back to top |
|
| Guest |
Posted: Sun Jun 08, 2008 9:11 pm |
|
|
|
Guest
|
On Jun 8, 2008, at 1:52 PM, Claes Wikstrom wrote:
>> I've been looking around for a way to have a file with a .html
>> extension (or
>> another extension) be processed as a .yaws file. Is this
>> possible? Am I
>> missing something obvious?
>
> not possible.
klacke, you're wrong (I don't get to say that often).
First, make yaws at least once.
Next, edit yaws/src/mime_types.erl (generated on first compile).
Find t("html") -> {regular, "text/html"}; and change it to:
t("html") -> {yaws, "text/html"};
Also jump down to revt("lmth") and give it a yaws handler as well.
You can also make yaws process no-extension files by altering "t(_)"
and "revt(_)".
Now, recompile and install.
Enjoy,
-Matt
--
Matt Stancliff San Jose, CA
AIM: seijimr iPhone: 678-591-9337
"The best way to predict the future is to invent it." --Alan Kay
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Sun Jun 08, 2008 11:16 pm |
|
|
|
Guest
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Another possible option is you can do fairly easily is implement a mod
rewrite like tool so people going to helloworld.html get helloworld.yaws.
Mog
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFITGgweq+tARrxhnsRAqGLAJ0Wy6Yq/Z0qCl0wnYvIyP8Zdll4SQCdEL7w
9RBewNfHHFBQPu9UNJygbUg=
=cdPy
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Mon Jun 09, 2008 10:23 pm |
|
|
|
Guest
|
Matt Stancliff wrote:
> On Jun 8, 2008, at 1:52 PM, Claes Wikstrom wrote:
>
>>> I've been looking around for a way to have a file with a .html
>>> extension (or
>>> another extension) be processed as a .yaws file. Is this
>>> possible? Am I
>>> missing something obvious?
>> not possible.
>
> klacke, you're wrong (I don't get to say that often).
Ha,
>
> First, make yaws at least once.
> Next, edit yaws/src/mime_types.erl (generated on first compile).
>
> Find t("html") -> {regular, "text/html"}; and change it to:
> t("html") -> {yaws, "text/html"};
> Also jump down to revt("lmth") and give it a yaws handler as well.
>
> You can also make yaws process no-extension files by altering "t(_)"
> and "revt(_)".
>
> Now, recompile and install.
>
Well - by hacking the code everything is possible. I gather
this is a feature that makes sense to have config support for.
Probably the reason is that you don't wan't your site to have
funky .yaws pages that confuse the clickers but rather regular
.html pages - right.
We should add config support (possibly compile time) for this
/klacke
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
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
|
|
|