Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 14 21:13
    greenkeeper[bot] labeled #5378
  • Oct 14 21:12
    greenkeeper[bot] opened #5378
  • Oct 14 21:12

    greenkeeper[bot] on can-simple-map-4.3.3

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

  • Oct 14 20:19
    greenkeeper[bot] labeled #5377
  • Oct 14 20:19
    greenkeeper[bot] opened #5377
  • Oct 14 20:19

    greenkeeper[bot] on @feathersjs

    chore(package): update @feather… (compare)

  • Oct 14 20:18
    greenkeeper[bot] labeled #5376
  • Oct 14 20:18
    greenkeeper[bot] opened #5376
  • Oct 14 20:18

    greenkeeper[bot] on @feathersjs

    chore(package): update @feather… (compare)

  • Oct 14 14:43
    greenkeeper[bot] closed #5373
  • Oct 14 14:43

    greenkeeper[bot] on can-deep-observable-1.0.1

    (compare)

  • Oct 14 14:42

    m-mujica on update-deep-observable

    (compare)

  • Oct 14 14:42

    m-mujica on master

    Update can-deep-observable to l… Merge pull request #5374 from c… (compare)

  • Oct 14 14:42
    m-mujica closed #5374
  • Oct 14 14:42
    m-mujica closed #5365
  • Oct 14 14:09
    f-ricci starred canjs/canjs
  • Oct 14 13:55
    greenkeeper[bot] commented #5375
  • Oct 14 13:55

    greenkeeper[bot] on core-js-3.3.2

    chore(package): update core-js … (compare)

  • Oct 14 10:51
    m-mujica review_requested #5374
  • Oct 14 07:43
    rjgotten commented #5358
Kevin Phillips
@phillipskevin
like… it won’t use type from the child and set from the parent or anything like that
Gregg Roemhildt
@roemhildtg
Right, that's what I was looking for. I just wasn't sure if it would work
Kevin Phillips
@phillipskevin
yeah, it will
Gregg Roemhildt
@roemhildtg
Will it keep properties from MyMap that aren't overwritten?
Kevin Phillips
@phillipskevin
yeah
Gregg Roemhildt
@roemhildtg
okay
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