librelist archives

« back to archive

[blohg] Is it possible to serve html file directly?

[blohg] Is it possible to serve html file directly?

From:
刘一新
Date:
2012-05-25 @ 14:37
Hi, all

blohg is based on Flask. So I wonder if it is possible to serve .py file or
html file directly?

Cheers!

BTW, I've asked ry4an if he can add :math: role for inline math that uses
Google Chart Api. Anyone interested?

-- 
*Yi-Xin Liu, PHD*
*Department of Macromolecular Science*
*Fudan University*
*Room 415, Yuejing Building *
*Handan Rd. 220, **Shanghai, China*
*Tel +86-021-65642863*
*Mobile +86-13916819745*
http://www.polymer.fudan.edu.cn/show.aspx?info_lb=20&info_id=752&flag=1
https://bitbucket.org/liuyxpp/
http://www.mendeley.com/profiles/yi-xin-liu/

Re: [blohg] Is it possible to serve html file directly?

From:
Rafael Martins
Date:
2012-05-25 @ 14:55
On Fri, May 25, 2012 at 11:37 AM, 刘一新 <liuyxpp@gmail.com> wrote:
> Hi, all
>
> blohg is based on Flask. So I wonder if it is possible to serve .py file or
> html file directly?
>
> Cheers!
>
> BTW, I've asked ry4an if he can add :math: role for inline math that uses
> Google Chart Api. Anyone interested?
>
> --
> Yi-Xin Liu, PHD
> Department of Macromolecular Science
> Fudan University
> Room 415, Yuejing Building
> Handan Rd. 220, Shanghai, China
> Tel +86-021-65642863
> Mobile +86-13916819745
> http://www.polymer.fudan.edu.cn/show.aspx?info_lb=20&info_id=752&flag=1
> https://bitbucket.org/liuyxpp/
> http://www.mendeley.com/profiles/yi-xin-liu/
>
>

This isn't currently supported.

I'm working on plugins support for blohg, that would allow you to
attach any custom python code (flask routes included)  in blohg.

Take a look at the 'plugins' branch of the mercurial repo:

https://hg.rafaelmartins.eng.br/blohg/

This isn't going to be released any time soon, because it is pretty
unstable yet, undocumented and depends on flask 0.9 that isn't
released yet.

Best regards,

-- 
Rafael Goncalves Martins
http://rafaelmartins.eng.br/

Re: [blohg] Is it possible to serve html file directly?

From:
刘一新
Date:
2012-05-26 @ 07:01
Great! I can then archive some data, e.g. my publications into a database.

I am looking forward to that.

2012/5/25 Rafael Martins <rafael@rafaelmartins.eng.br>

> On Fri, May 25, 2012 at 11:37 AM, 刘一新 <liuyxpp@gmail.com> wrote:
> > Hi, all
> >
> > blohg is based on Flask. So I wonder if it is possible to serve .py file
> or
> > html file directly?
> >
> > Cheers!
> >
> > BTW, I've asked ry4an if he can add :math: role for inline math that uses
> > Google Chart Api. Anyone interested?
> >
> > --
> > Yi-Xin Liu, PHD
> > Department of Macromolecular Science
> > Fudan University
> > Room 415, Yuejing Building
> > Handan Rd. 220, Shanghai, China
> > Tel +86-021-65642863
> > Mobile +86-13916819745
> > http://www.polymer.fudan.edu.cn/show.aspx?info_lb=20&info_id=752&flag=1
> > https://bitbucket.org/liuyxpp/
> > http://www.mendeley.com/profiles/yi-xin-liu/
> >
> >
>
> This isn't currently supported.
>
> I'm working on plugins support for blohg, that would allow you to
> attach any custom python code (flask routes included)  in blohg.
>
> Take a look at the 'plugins' branch of the mercurial repo:
>
> https://hg.rafaelmartins.eng.br/blohg/
>
> This isn't going to be released any time soon, because it is pretty
> unstable yet, undocumented and depends on flask 0.9 that isn't
> released yet.
>
> Best regards,
>
> --
> Rafael Goncalves Martins
> http://rafaelmartins.eng.br/
>



-- 
*Yi-Xin Liu, PHD*
*Department of Macromolecular Science*
*Fudan University*
*Room 415, Yuejing Building *
*Handan Rd. 220, **Shanghai, China*
*Tel +86-021-65642863*
*Mobile +86-13916819745*
http://www.polymer.fudan.edu.cn/show.aspx?info_lb=20&info_id=752&flag=1
https://bitbucket.org/liuyxpp/
http://www.mendeley.com/profiles/yi-xin-liu/