Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 14 11:36
    et0and starred canjs/canjs
  • Jan 13 07:39
    khafidprayoga starred canjs/canjs
  • Jan 06 19:51
  • Dec 14 2021 12:31
    mduraidi starred canjs/canjs
  • Dec 04 2021 02:00
    jpmanson starred canjs/canjs
  • Nov 14 2021 12:55
    falleng0d starred canjs/canjs
  • Nov 13 2021 08:06
    g1964j starred canjs/canjs
  • Nov 13 2021 01:34
    bradms starred canjs/canjs
  • Nov 11 2021 18:47

    eddypjr on master

    Update dist for release (compare)

  • Nov 11 2021 18:46
    eddypjr added as member
  • Nov 11 2021 18:30

    eddypjr on v6.6.2

    Update dist for release 6.6.2 (compare)

  • Nov 11 2021 17:17

    justinbmeyer on v6.6.2

    (compare)

  • Nov 11 2021 16:56
    eddypjr removed as member
  • Nov 11 2021 16:52
    eddypjr added as member
  • Nov 11 2021 16:34

    eddypjr on v6.6.2

    Update dist for release 6.6.2 (compare)

  • Nov 08 2021 13:14
    italy starred canjs/canjs
  • Nov 03 2021 23:12
    shoumaw starred canjs/canjs
  • Oct 22 2021 14:19
    MCKanpolat starred canjs/canjs
  • Oct 21 2021 12:12
    bohanyang starred canjs/canjs
  • Oct 14 2021 19:14

    bmomberger-bitovi on v3.9.0

    (compare)

Christopher Oliphant
@RALifeCoach
with the template line commented out the component loads and the cone.log values are shown
Mohamed Cherif Bouchelaghem
@cherifGsoul
just // var template = require('./player-bio.stache');
Christopher Oliphant
@RALifeCoach
yes - commented out everything works - uncommented nothing works
Mohamed Cherif Bouchelaghem
@cherifGsoul
I mean var template = require('./player-bio.stache');
without the "!"
Christopher Oliphant
@RALifeCoach
the ! prevents steal from adding .js
Mohamed Cherif Bouchelaghem
@cherifGsoul
yes I have the same error now
Christopher Oliphant
@RALifeCoach
now add that section to the package.json
  "system": {
    "ext": {
      "stache": "can-stache"
    }
  },
and put the ! back in
then you will no errors and no output
not even the console.log output
Mohamed Cherif Bouchelaghem
@cherifGsoul
yes
Christopher Oliphant
@RALifeCoach
do I need to revert to 2.3? or can this be diagnosed fairly quickly?
Mohamed Cherif Bouchelaghem
@cherifGsoul
I told you is not ready for production :)
for production use 2.3 for now
Christopher Oliphant
@RALifeCoach
okay - we will go back to 2.3
thanks for your help
Mohamed Cherif Bouchelaghem
@cherifGsoul
you are welcome
Christopher Oliphant
@RALifeCoach
can you please let me know when this is resolved
Mohamed Cherif Bouchelaghem
@cherifGsoul
ok n
np
@RALifeCoach it is resolved
Christopher Oliphant
@RALifeCoach
wow, that was amazing!
Mohamed Cherif Bouchelaghem
@cherifGsoul
install this plugin
Christopher Oliphant
@RALifeCoach
npm install steal-stache?
Mohamed Cherif Bouchelaghem
@cherifGsoul
yes like in the docs in the repo
npm install steal-stache --save
I updated can-playground
Christopher Oliphant
@RALifeCoach
Thanks - my code is running now
Mohamed Cherif Bouchelaghem
@cherifGsoul
no problem
Sunil George
@georgesunil81
A quick question - I want to do a stache {{#if helper arg1 arg2}}{{/if}}, how do I do it syntaxwise?
For example -
{{#if isLicenseExpired visitDate expiration}}<p>Expired</p>{{/if}}
Christopher Oliphant
@RALifeCoach
{{#if helper(arg1, arg2)}}{{/if}}
Sunil George
@georgesunil81
Ah! That is what I was missing, let me try that.
Thanks @RALifeCoach
Christopher Oliphant
@RALifeCoach
You’re welcome
Sunil George
@georgesunil81
Yes, it worked. Thanks @RALifeCoach for the quick help.
Leath Cooper
@IcculusC
o/
anyone have any insight on what's going on here canjs/can-component#27
Christopher Oliphant
@RALifeCoach
Hi all. In 2.3 I could reference this.element.attr. In 3.0 I am getting an error. What’s different in 3.0?
Christopher Oliphant
@RALifeCoach
In 3.0 I can use $(this.element).find, but not $(this.element).attr
Ignore the last comment $(this.element).attr works
Leath Cooper
@IcculusC

@RALifeCoach as far as I understand in 3.0 .attr no longer exists, instead there are automatically populated getters and setters, so where you would have said

let foo = this.attr('bar');

you would now say

let foo = this.bar;

and to set the value of the attribute you'd say

this.bar = someValue;

unless you are trying to get an attribute from the DOM element which would be $(this.element).attr I believe(don't quote me on that part)

I mean, that last bit will work, but not sure if there's a better way within canjs
Matthew Phillips
@matthewp
@halcyonandon fair enough, what would you recommend calling that package then?
Sunil George
@georgesunil81
A quick question - I am getting these warning messages in the console when my staches are rendered -