artanis
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can index.html be made the default page?


From: Nala Ginrut
Subject: Re: Can index.html be made the default page?
Date: Tue, 15 Dec 2020 08:58:03 +0800
User-agent: mu4e 1.4.13; emacs 27.1

Hi Mortimer!
Currently, you may do it like this:
--------------------code--------------------
(help-define "about" (view-render "index" (the-environment)))
--------------------end---------------------

I don't have a better idea to do it automatically, since
`the-environment` has to be captured inside the handler function. So you
can't define a function to render index template. But if you define it
as a macro, you can't pass it in.

I'm open with a better idea.

Best regards.


Mortimer Cladwell writes:

> Hi,
>
> I would like to serve the help files for my application with Artanis.  My
> help system generator (Hexo, static website generator) generates one
> directory per page and assumes the default HTML page is index.html e.g. if
> I want to load my About page I would navigate to
> http://localhost:3000/help/about and
> http://localhost:3000/help/about/index.html is automatically loaded.
> Is there a way to instruct Artanis to look for index.html if the .html is
> not provided?
> Thanks
> Mortimer


--
GNU Powered it
GPL Protected it
GOD Blessed it
HFG - NalaGinrut
Fingerprint F53B 4C56 95B5 E4D5 6093 4324 8469 6772 846A 0058

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]