[Catalyst] Please help to figure out with URL's

2014-12-04 Thread Александер Пономарёв
Hello to all,
I'm very beginner in Catalyst and now I've faced up with the problem: on my
dev sever (script/myapp_server.pl) I've got urls to static files like, for
example 0.0.0.0/image.png, instead of localhost:3000/image.png. (in
template it looks like img src=/image.png /
So, I can't load any static file in my dev-server. Please, help me to
figure out what's going.
And yes, uri_for('/image.png') works fine, but, may be, there is another
way to do it?

Thanks for youre help.
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Please help to figure out with URL's

2014-12-04 Thread Александер Пономарёв
Yes, it comes from my browser, but I don't think it's normal, because I
didn't see it before in my mojolicious application.
Anyway, I think, there is the way to tweak an environment of the dev
server. Am I right? ;-)

2014-12-05 1:41 GMT+06:00 Trevor Leffler tleff...@uw.edu:

 Hi,

 tl;dr - Use c.uri_for() everything, including statics.

 I can't say why your links are 0.0.0.0/image.png without looking at the
 full source of your page.  I think your browser is doing this, maybe with
 some (bad) hints.

 However... c.uri_for('/image.png') is the right way to do it.  It will
 make sure the correct hostname, port, and path prefix for your application
 are used, and it makes your app relocatable -- meaning you won't have to
 change all of your static urls when your app's URL or root path changes.

 This is a typical use:

 link href=[% c.uri_for('/static/css/my_style.css') | html %]
 rel=stylesheet

 Cheers,
 --Trevor

 On 12/04/2014 11:23 AM, Александер Пономарёв wrote:

 Hello to all,
 I'm very beginner in Catalyst and now I've faced up with the problem: on
 my dev sever (script/myapp_server.pl http://myapp_server.pl) I've got
 urls to static files like, for example 0.0.0.0/image.png
 http://0.0.0.0/image.png, instead of localhost:3000/image.png. (in
 template it looks like img src=/image.png /
 So, I can't load any static file in my dev-server. Please, help me to
 figure out what's going.
 And yes, uri_for('/image.png') works fine, but, may be, there is another
 way to do it?

 Thanks for youre help.


 ___
 List: Catalyst@lists.scsys.co.uk
 Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
 Searchable archive: http://www.mail-archive.com/
 catalyst@lists.scsys.co.uk/
 Dev site: http://dev.catalyst.perl.org/


 ___
 List: Catalyst@lists.scsys.co.uk
 Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
 Searchable archive: http://www.mail-archive.com/
 catalyst@lists.scsys.co.uk/
 Dev site: http://dev.catalyst.perl.org/

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] What text editor to use?

2011-04-12 Thread Александер Пономарёв
I use Komodo Edit, it's free (not open source) and very usefull for
me. It supports Perl and TT-synax, I like it ;-)

2011/4/12 John M. Dlugosz wxju46g...@snkmail.com:
 On 4/11/2011 2:01 PM, Eden Cardim edencardim-at-gmail.com |Catalyst/Allow to
 home| wrote:

 Emacs also has a set of extensions written by jrockway that facilitate
 the writing of perl code in general. I use that combined with yasnippet
 and the perltidy extension for maximum throughput and it's very
 satisfying.

 Thanks.

 I installed Emacs, and found that it's too alien for me.  Basic things like
 selecting with the mouse and keyboard together are different from my current
 habits.  Is there a more GUI front-end?



 ___
 List: Catalyst@lists.scsys.co.uk
 Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
 Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
 Dev site: http://dev.catalyst.perl.org/


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/