Module::Spy ãã¤ããã my $render = spy_on('Text::Xslate', 'render'); # ã³ã³ããã¼ã©ãã㶠...; my $tmpl = $render->calls_first->[1]; ok { $tmpl eq 'my/index.tt' };
Module::Spy ãã¤ããã my $render = spy_on('Text::Xslate', 'render'); # ã³ã³ããã¼ã©ãã㶠...; my $tmpl = $render->calls_first->[1]; ok { $tmpl eq 'my/index.tt' };
perldocã«ããããã«ãchomp()ã®æå㯠$/ ã«ä¾åãã¾ããã¨ãããã¨ã¯ããã£ãã local $/ ããã¹ã³ã¼ã㧠chomp() ãè¡ãã¨ãä½ãããã¾ããã ãã®çµæèµ·ããç¾è±¡ããããã¦ä¸å¯è§£ãªã®ã§ãreadlineã®ç´å¾ä»¥å¤ã®å ´é¢ã§ã¯chomp()ã使ãã s/\r?\n\z//xms ããã®ãç¡é£ã§ããã*1ã use strict; use warnings; local $/; my $s = "Hello\n"; chomp $s; print "[$s]\n"; # => #[Hello #] Xslateãã¾ãã«ããã«ã¯ã¾ã£ã¦ããã®ã§ä¿®æ£ãã¾ããã https://github.com/xslate/p5-Text-Xslate/commit/92c7387b0f0ebdad5761c420a54564b9e8d2f635 [追è¨] *1:ã¯ã¦ãã®ã³ã¡ã³ããã
ã³ã¼ãã¸ã§ãã¬ã¼ã¿ã¼ã¨ãããã¹ããããã¨ãããã»ããã¢ããã¹ã¯ãªããã¨ãããããããã®ããæè¿ã¯ä»¥ä¸ã®ãããªæãã§æ¸ãã¦ãã å®éã«ã¯ Getopt::Long ãªããã¨çµã¿åããã¦ä½¿ãã #!/usr/bin/env perl use strict; use warnings; use File::Basename qw/dirname/; use File::Path qw/mkpath/; use File::Slurp qw/write_file/; use Data::Section::Simple qw/get_data_section/; use Text::Xslate; use 5.12.1; my $app = shift || die 'Usage: gen.pl app'; mkdir $app or die "$app: $!"; chdir $app; my $
Mojolicious::Liteã¯ä¸ã¤ã®ãã¡ã¤ã«ã®ä¸ã«å ¨é¨çªã£è¾¼ãã§Webã¢ããªãä½ããã¨ãããã¨ãªã®ã§ãä»èªåãæ°ã«ãªã£ã¦ããã®ãç¿ä½ã®æå³ãè¾¼ãã¦å ¨é¨è©°ãè¾¼ãã§CRUDã¢ããªãä½ã£ã¦ã¿ã¾ãããjQueryãå ¥ãããã£ããã©æ¸ãã¦ãã¦ã«ãªã¹ã«ãªã£ãã®ã§SNBinderã®è£å©ã¨ãã¼ã¸ã£ä»¥å¤ã¯ç¡ãã«ãã¾ããã è²ã çªã£è¾¼ãã§ã¿ããã®ã¯ä»¥ä¸ Teng ãã¼ã¸ã£ï¼ãã©ã°ã¤ã³ï¼ inflate/deflate triggerã®ä»£æ¿ Class::Method::Modifiers Devel::KYTProf Xslate Mojolicious::Liteã§ç¶æ¿ SNBinder ã³ã³ã»ãã éæ Teng nekokakããä½ã®è»½éORMã§ããTengã Skinnyã®å¾ç¶ DBIã®èãã©ããã¼ ã¨ãããã¨ã§ãã·ã³ãã«ããæ®ãã¤ã¤ããã£ã¨æ¸ããããã¨ã¯ããã£ã¨æ¸ããããã«é æ ®ããã¦ã¦è¯ãæã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}