Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 18 22:20
    greenkeeper[bot] labeled #5391
  • Oct 18 22:20
    greenkeeper[bot] opened #5391
  • Oct 18 22:20

    greenkeeper[bot] on can-observable-mixin-1.0.3

    fix(package): update can-observ… (compare)

  • Oct 18 19:08
    cherifGsoul labeled #5390
  • Oct 18 19:07
    cherifGsoul opened #5390
  • Oct 18 18:45
    greenkeeper[bot] labeled #5389
  • Oct 18 18:45
    greenkeeper[bot] opened #5389
  • Oct 18 18:45

    greenkeeper[bot] on can-observable-bindings-1.3.0

    fix(package): update can-observ… (compare)

  • Oct 18 18:29

    matthewp on master

    Update dist for release (compare)

  • Oct 18 18:29

    matthewp on v6.1.3

    Update dist for release 6.1.3 (compare)

  • Oct 18 17:59

    matthewp on can-observable-array-1.0.2

    (compare)

  • Oct 18 17:59

    matthewp on master

    fix(package): update can-observ… Merge pull request #5388 from c… (compare)

  • Oct 18 17:59
    matthewp closed #5388
  • Oct 18 16:46
    greenkeeper[bot] labeled #5388
  • Oct 18 16:46
    greenkeeper[bot] opened #5388
  • Oct 18 16:46

    greenkeeper[bot] on can-observable-array-1.0.2

    fix(package): update can-observ… (compare)

  • Oct 18 12:45
    greenkeeper[bot] labeled #5387
  • Oct 18 12:45
    greenkeeper[bot] opened #5387
  • Oct 18 12:45

    greenkeeper[bot] on can-stache-element-1.0.2

    fix(package): update can-stache… (compare)

  • Oct 18 09:49
    chasenlehara edited #5384
Chasen Le Hara
@chasenlehara
Gregg Roemhildt
@roemhildtg
Awesome, thanks guys.
xedos
@xedoken

Hello guys! I have a little question for you:

I use canjs with symfony2 php framework, symfony has twig template engine with stache like syntax. So the problem is:

I need insert some twig expressions in stache template like each(with twig data) and conditionals, but when i export canjs app it throws error about these twig parts, can i write that twig parts as raw? like canjs and steal dont look at these blocks and leave them as it is? thank you :)

the part of twig code i wanna insert:

{% for avatarExample in avatarExamples %}
   <li>
       <a href="#">
           <img style="width:50px;height:50px;" src="{{ asset( ('uploads/avatar-examples/' ~ avatarExample.path) ) }}" data-image="{{ asset( ('uploads/avatar-examples/' ~ avatarExample.path)) }}" alt=""/>
        </a>
   </li>
{% endfor %}

and smth like this:

url: "{{ path('admin_save_avatar_preset') }}"
Matthew Phillips
@matthewp
can you put it inside of stache comments?
xedos
@xedoken
hm, so when i export my canjs app with steal this comment twig tag will display as usual?
i found safeString in canjs docs, but it doesn't helps :(
Dovid Bleier
@dbleier
I am using can-connect superMap on 2.3 and have one model that I want to completely disable caching and hit the server anytime getList() is called. Anyway I can easily do that?
Kevin Phillips
@phillipskevin
don’t use superMap
Chasen Le Hara
@chasenlehara
Yeah, I think using base-map with just the behaviors you want is probably the best solution.
Chasen Le Hara
@chasenlehara
@xedoken, am I understanding you correctly in that it’s stache that’s throwing an error when it’s parsing that template?
Dovid Bleier
@dbleier
@phillipskevin ok, thanks I'll try that
actually, I couldn't just override the cacheConnection property, like just set it to null?
Mohamed Cherif Bouchelaghem
@cherifGsoul
Kevin Phillips
@phillipskevin
@dbleier I don’t think there’s a way to do that
Dovid Bleier
@dbleier
ok
Mohamed Cherif Bouchelaghem
@cherifGsoul
@xedoken you can not use twig expression inside stache templates, but the inverse is ok as long as the stache part is in raw filter like jinja with handlebars in this example (Twig is a php port of jinja) https://coderwall.com/p/fy6vka/how-jinja2-and-handlebars-js-can-co-exist
Marc Godard
@MarcGodard
Hi Guys, I am using can.route for navigation, is there a way to make this change the title of the page (the one that shows up on the tab) without the title being added to the location bar?
FYI I am still using can 2.3
Kevin Phillips
@phillipskevin
if your’e using done-autorender you can use stache for your title like <title>{{title}}</title>
and set that value based on your routes
Matthew Phillips
@matthewp
or if not using done-autorender bind to your viewModel and set document.title when the title prop changes.
Gregg Roemhildt
@roemhildtg
I was wondering about something recently. This might be a silly question but can I create a component programatically on a dom element? Instead of rendering the component's stache template, could I do something like this?
new MyComponent(document.body.getElementById('app'), { prop: 'value' })
Justin Meyer
@justinbmeyer
@roemhildtg yes, but you have to provide it tagData
abdulr101
@abdulr101
hello
abdulr101
@abdulr101
@justinbmeyer Hi its Abdul , I know you already answer to my text editor question for canjs but i have another subset of this question lol, which is that, what do you suggest as far as picking between atom or sublime text editor because if I wanted to do more (feature wise in the future)with canjs or angularjs, what should i use , sublime or atom? (yours and any one else suggestion is appreciated thanks in advance).
Gregg Roemhildt
@roemhildtg
@justinbmeyer is tagData essentially the properties for the viewModel?
Maybe not, I found this on it, so it looks like tagData is an object with subtemplate, scope and options
Frank Lemanschik
@frank-dspeed
@roemhildtg thats totally right
thats the Object you need to provide thats exactly what a component is
tag + tagData
you can reverse engineer that via console.log(aNormalComponent)
to see some examples
and it would be nice if you could prepare a gist with your results :) so i can use that also
Chasen Le Hara
@chasenlehara
Even better, please consider contributing to the can-component docs: https://github.com/canjs/can-component/tree/master/docs
Frank Lemanschik
@frank-dspeed
@chasenlehara that was my final plan but don't wanted to ask for so much :)
@chasenlehara canjs/canjs#3007 wanna look into that?
and maybe writen down your opinion about that?
write lol not writen
i need a way to write proper english my autocorrection don't works well on gitter
Chasen Le Hara
@chasenlehara
I don’t have any additional comments on it that the core team hasn’t already discussed in the last contributors meeting or in this issue: donejs/donejs#792
Frank Lemanschik
@frank-dspeed
?
Chasen Le Hara
@chasenlehara
Frank Lemanschik
@frank-dspeed
yes i know what got discussed i was there :)
there was spoken about generator-donejs
but now i have thrown in that there is a long years existing project that would better fit
and no one commented on that something other then generate a new issue for that and i did that now in CanJS
so out of my view nothing got discussed
For me the result of the last meeting was generator-donejs can be splitted but no one was sure how far and what is donejs what is canjs