# Using done-ssr/import

**URL:** <https://forums.bitovi.com/t/using-done-ssr-import/306>\
**Category:** DoneJS\
**Created:** [June 9, 2016, 1:26pm UTC](https://forums.bitovi.com/t/using-done-ssr-import/306 "2016-06-09T13:26:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergey](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@Sergey](https://forums.bitovi.com/u/Sergey)\
**Post date:** [June 9, 2016, 1:26pm UTC](https://forums.bitovi.com/t/using-done-ssr-import/306/1 "2016-06-09T13:26:54Z")

</div>

Hi guys

I want to make a handelbars ssr helper using done-ssr/import to render some components.

> <https://github.com/donejs/done-ssr/blob/master/docs/import.md>

Something like this

```
Handlebars.registerHelper('renderStache', function(pathToStache) {
    var doneSsrImport = require("done-ssr/import");

    return doneSsrImport (pathToStache).then(function(buildFunction){
        var context = {
            title: 'title1',
            description: 'description1',
            type: 'type1'
        }
        return buildFunction(context)
    });
});

```

I have installed done-ssr.  
But when I try to perform this helper I have got an error.  
Error: Cannot find module ‘@loader’ in done-ssr/import  
In the source of done-ssr/import I can see  
var loader = require("@loader");  
It looks like I didn’t do some steps or maybe some requirement are needed.

Could you help me? What shall I do?

Thanks!

---

<div class="post-metadata">

**Author:** ![matthewp](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/matthewp/32/77_2.png) [@matthewp](https://forums.bitovi.com/u/matthewp)\
**Post date:** [June 9, 2016, 1:28pm UTC](https://forums.bitovi.com/t/using-done-ssr-import/306/2 "2016-06-09T13:28:01Z")

</div>

Is this client code? done-ssr/import is meant to be used in client-side Steal code.

---

<div class="post-metadata">

**Author:** ![Sergey](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@Sergey](https://forums.bitovi.com/u/Sergey)\
**Post date:** [June 9, 2016, 1:39pm UTC](https://forums.bitovi.com/t/using-done-ssr-import/306/3 "2016-06-09T13:39:15Z")

</div>

No, this code will be performed at the server side.  
The task is to render only some components at the server side not all. Can done-ssr help me do it?

---

<div class="post-metadata">

**Author:** ![matthewp](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/matthewp/32/77_2.png) [@matthewp](https://forums.bitovi.com/u/matthewp)\
**Post date:** [June 9, 2016, 3:57pm UTC](https://forums.bitovi.com/t/using-done-ssr-import/306/4 "2016-06-09T15:57:57Z")

</div>

It depends, is this code that you are requiring from within Node like:

```auto
require("done-ssr/import");

```

Or is this inside of your app that done-ssr is loading? If the former, it’s not for this purpose.
