Skip to content

Commit

Permalink
update template to use text::microtemplate::extended which is tatsuma…
Browse files Browse the repository at this point in the history
…ki default
  • Loading branch information
clkao committed Nov 17, 2009
1 parent 45cb423 commit 30433d8
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions templates/default.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
? my $code = $_[0]->{code};
? my $tf = $_[0]->{tf};
? my $calc = $_[0]->{calc};
? my $cnt = $calc->prices->count;
? my $jsurl = $_[0]{env}{'psgix.jsconcat.url'};
% my $code = $_[0]->{code};
% my $tf = $_[0]->{tf};
% my $calc = $_[0]->{calc};
% my $cnt = $calc->prices->count;
% my $jsurl = $_[0]{env}{'psgix.jsconcat.url'};
<html>
<head>
<title>Tatsumaki Chat demo</title>
? if ($jsurl) {
<script src="<?= $jsurl ?>"></script>
? } else {
% if ($jsurl) {
<script src="<%= $jsurl %>"></script>
% } else {
<script src="/static/jquery-1.3.2.min.js"></script>
<script src="/static/raphael.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/plugins/raphael.path.methods.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/joose.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/gtchart.js" type="text/javascript" charset="utf-8"></script>
? }
% }
<link rel="stylesheet" href="/static/screen.css" />
<style type="text/css" media="screen">
#holder {
Expand All @@ -25,21 +25,21 @@
<script type="text/javascript">
jQuery(function() {
var r = Raphael("holder", 800, 600);
var cnt = <?= $cnt ?>;
var cnt = <%= $cnt %>;

var view = new GTChart.View({ r: r, x: 10, y: 10, width: 750, height: 600,
items_to_load: 200, cnt: cnt});

var zone = view.new_zone({ y: 10, height: 230});
zone.add_loader('/d/<?= $code ?>/<?= $tf ?>/prices', {},
zone.add_loader('/d/<%= $code %>/<%= $tf %>/prices', {},
zone.render_candle);

zone.add_loader('/d/<?= $code ?>/<?= $tf ?>/indicator',
zone.add_loader('/d/<%= $code %>/<%= $tf %>/indicator',
{ name: "I:SMA 5" },
zone.render_curve);

var zone2 = view.new_zone({ y: 250, height: 150});
zone2.add_loader('/d/<?= $code ?>/<?= $tf ?>/indicator',
zone2.add_loader('/d/<%= $code %>/<%= $tf %>/indicator',
{ name: "I:Prices VOLUME" },
zone.render_bar);

Expand Down

0 comments on commit 30433d8

Please sign in to comment.