by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 10 17:52
    lukewhyte removed as member
  • Jul 10 17:52
    kross-hub removed as member
  • Jul 10 17:51
    ilyavf removed as member
  • Jul 10 17:41
    lukewhyte added as member
  • Jul 10 17:41
    kross-hub added as member
  • Jul 10 17:41
    ilyavf added as member
  • Jul 08 20:02
    cherifGsoul review_requested #5497
  • Jul 08 18:32
    cherifGsoul synchronize #5497
  • Jul 08 18:32

    cherifGsoul on remove-old-ecosystem-packages

    Remove packages from ecosystem (compare)

  • Jul 08 18:26
    cherifGsoul synchronize #5497
  • Jul 08 18:26

    cherifGsoul on remove-old-ecosystem-packages

    Remove test files and es files (compare)

  • Jul 08 18:20
    cherifGsoul opened #5497
  • Jul 08 18:19

    cherifGsoul on remove-old-ecosystem-packages

    Remove can-connect-feathers and… (compare)

  • Jul 07 20:29
  • Jul 06 18:14
    cherifGsoul commented #5495
  • Jul 06 17:15
    cherifGsoul commented #5495
  • Jul 02 19:09

    cherifGsoul on master

    Update Canjs5 minor version in … (compare)

  • Jul 02 18:01

    cherifGsoul on master

    Update dist for release (compare)

  • Jul 02 18:01

    cherifGsoul on v6.5.0

    Update dist for release 6.5.0 (compare)

  • Jul 02 17:46

    cherifGsoul on master

    Bump can-ajax to 2.4.6 (#5496) (compare)

Christopher Oliphant
@RALifeCoach
I need to see the invoking html and the module that you had you code in, the package json file, etc. Thanks
Mohamed Cherif Bouchelaghem
@cherifGsoul
ok we will go step by step is the first time with can 3 for me too :)
Mohamed Cherif Bouchelaghem
@cherifGsoul
sorry I didnt ignore node_modules
Christopher Oliphant
@RALifeCoach
np
I am working along side you
I commented out everything except one console.log
Now I am adding lines back in one at a time
Mohamed Cherif Bouchelaghem
@cherifGsoul
package.json has nothing complicated
Christopher Oliphant
@RALifeCoach
yes
now require a stache template
Mohamed Cherif Bouchelaghem
@cherifGsoul
ok
Christopher Oliphant
@RALifeCoach
I have everything back in except for the template
Mohamed Cherif Bouchelaghem
@cherifGsoul
what you mean?
Christopher Oliphant
@RALifeCoach
var Component = require('can-component');
var Map = require('can-map');
var $ = require('jquery');
var stache = require('can-stache');
// var template = require('./player-bio.stache!');
//
var PlayerBioViewModel = Map.extend({

});

console.log('ajhgjasgjahsgjhagshjgas');
Component.extend({
    tag: 'pgat-player-bio',
    template: stache('<div>Hello World</div>'),
    viewModel: PlayerBioViewModel,
    events: {
        inserted: function () {
            console.log('here and here');
        }
    }
});

$(document.body).append(stache('<pgat-player-bio></pgat-player-bio>'));
when I uncomment the template line - the code no longer runs
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?