Hi Alessandro,
  Took me a while to narrow it down, but it's font awesome doing the odd
thing. For some reason it keeps repeating the icons, so I get about six
instead of just the one.  I assume its some interaction between font
awesome and another CSS file but to date I have not been able to separate
out why I get this problem. I am also unsure why Kajiki would trigger this.
The HTML from the server looks ok. Using span instead of i tags seems to
fix it.

The main remaining problem now with Kajiki is that Mako allows me to have
dynamic Javascript, while Kajiki doesn't seem to.
So I need things like this:
<script>
  var doughnutData = [
%for i,field in enumerate(w.graph_data):
    {
      value: ${field[1]},
color: "${w.graph_colors[i%len(w.graph_colors)]}"
    },
%endfor
    ];
  var my${w.id} = new Chart(document.getElementById("${w.id
}").getContext("2d"))
.Doughnut(doughnutData);
</script>

This appears at the bottom of a template in Mako, any idea how you get
something like this in Kajiki?

 - Craig


On Sun, 27 Aug 2017 at 01:15 Alessandro Molina <[email protected]>
wrote:

> On Sat, Aug 26, 2017 at 12:36 PM, Craig Small <[email protected]> wrote:
>
>> Thanks for that, it fixed that component of the templates.
>>
>> Unfortunately, I'll probably have to go back to Mako because it requires
>> some very strict requirements of the templates.  I haven't worked out why,
>> but I get duplicate icons in my lists. Also things like <div
>> class="clearfix" /> do some very strange things.
>>
>
> How have you configured kajiki output? What do you mean by "some very
> strange things"?
> I used kajiki as primary template engine for pretty big websites, and
> migrated multiple genshi projects to kajiki and so far it worked pretty
> well.
>
>
>> The killer is, Mako lets me template javascript, I just couldn't get
>> Kajiki to handle it properly.
>>
>
> Do you have an example of what you are trying to do?
> I used kajiki with React, Ractive and Angular so far without any major
> issue.
>
> Alessandro
>
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/turbogears.
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Craig Small             https://dropbear.xyz/     csmall at : enc.com.au
Debian GNU/Linux        https://www.debian.org/   csmall at : debian.org
Mastodon: @[email protected]             Twitter: @smallsees
GPG fingerprint:      5D2F B320 B825 D939 04D2  0519 3938 F96B DF50 FEA5

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.

Reply via email to