Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>If you start a new sproutcore template project, then per default only the core_foundation classes are loaded. That means only those are defined as dependency in your main sproutcore buildfile:</p> <pre><code>config :all, :required =&gt; "sproutcore/core_foundation", :theme =&gt; "sproutcore/empty_theme" </code></pre> <p>In most cases the makes total sense, since the template view system, introduced with sproutcore 1.5 does not work well in combination with templates. Although, it is possible to use the template view within a "traditional" sproutcore view e.g. SC.ContainerView (see <a href="http://guides.sproutcore.com/using_handlebars.html#using-sc-templateview-inside-desktop-controls" rel="nofollow">http://guides.sproutcore.com/using_handlebars.html#using-sc-templateview-inside-desktop-controls</a> for details) you can't use traditional sc desktop views inside of template views.</p> <p>Hence, the desktop views are not included in the buildfile when you are starting a new template project. However, some other useful sproutcore modules are also not included per default, e.g. the ajax module, the datastore or the statechart module. If you want to use those modules you have to adjust your buildfile and include those modules. It might look like that</p> <pre><code>config :all, :required =&gt; [ "sproutcore/core_foundation", "sproutcore/datastore", "sproutcore/statechart", "sproutcore/ajax" ] :theme =&gt; "sproutcore/empty_theme" </code></pre> <p>to include specific modules or just</p> <pre><code>config :all, :required =&gt; "sproutcore", theme =&gt; "sproutcore/empty_theme" </code></pre> <p>to include all available sproutcore modules. If you want to start a traditional sproutcore project with the provided components just use</p> <pre><code># sc-init your-project </code></pre> <p>instead of </p> <pre><code># sc-init your-project --template </code></pre> <p>That way, you'll end up with the correct buildfile right from the start. It might be confusing when you start with sproutcore but one should be aware that building sproutcore template applications is something different than building sproutcore applications with the provided desktop controls. Although, paths are provided to convert existing desktop like applications into template ones afterwards the opposite way is not supported (yet).</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload