Questions tagged [partials]

Partials are often synonym for templates, which can even also be called partial templates.

Partials are often synonym for templates, which can even also be called partial templates.

763 questions
0
votes
1 answer

How to implement BREEZE.JS Partials that are more than Partials?

I'm using the CodeCamper Pluralsight example by John Papa as a base (Durandal framework, which is a great project to get started with). I have a customer entity and would like to display a list of customers that are analogous to partials, where you…
mwill
  • 424
  • 7
  • 21
0
votes
1 answer

Calling a rails app's main 'yield' from a partial

My question is very simple. I will ask it first in case the answer is obvious, and then I will explain what I mean, in case it's not obvious. Is it considered ok to make your main 'yield' call from a partial instead of doing it directly from your…
stephenmurdoch
  • 34,024
  • 29
  • 114
  • 189
0
votes
1 answer

Using render as the value_method in Rails Simple Form?

I'm working on an RoR project with the Simple_Form gem. For those who don't know, simple form creates easier form helpers for use in views. My question is regarding the f.association helper which allows users to easily select associations on models…
Dylan Karr
  • 3,304
  • 4
  • 19
  • 29
0
votes
1 answer

How to compile doT.js partials from a file into a string?

Hi I'm new to node and I'm trying to figure out how to compile partials from a file into a string using doT.js (http://olado.github.io/doT/index.html). /controllers/system/index.js: var util = require( 'util' ), fs = require( 'fs' ), dot =…
Jonathan
  • 543
  • 9
  • 23
0
votes
2 answers

Rails display in view if a particular user is present

For testing purposes, I want to make a particular part of a layout only visible to ONE particular user, using Devise for authentication. Here is what I want in psuedo ERB: <% unless PARTICULARUSER.present? %> <%= render "PARTIAL FOR…
Vincent
  • 1,454
  • 2
  • 17
  • 24
0
votes
1 answer

Rails: passing an instance variable to different controller through a partial

In Category view I have:
    <% @category.subcategories.each do |subcategory| %>
  • <%if subcategory.has_topic_headings? %> <%= link_to subcategory.name, { controller: 'subcategories', …
Rebel
  • 797
  • 17
  • 30
0
votes
1 answer

Ruby on Rails Partial Templates Understanding

I have a short question to help me understand Rails partials. I am new to RoR and just working through Agile Web Development with Rails. I am in Iteration F1 if you have the same book. When i am not using partials, the show.html.erb from the carts…
damir
  • 1,928
  • 1
  • 16
  • 26
0
votes
2 answers

How can I expose plugin functions to docpad partials?

tldr; Is there a way to expose functions defined in one plugin for another plugin to use? I'm trying to use the tagging plugin (https://github.com/rantecki/docpad-plugin-tagging) within a partial. I have a Jade partial setup as follows: .post-tags …
0
votes
2 answers

Zend Cycle within Partials

Is there an alternative to using 'Cycle' when creating zebra tables in Zend. ( My version does not have Cycle helper and don't really want to have to upgrade. Using a partial loop and need each table to put out different bg color. However the…
Rhys Thought
  • 3,019
  • 2
  • 17
  • 5
0
votes
2 answers

Best Practice for Creating a Modular Form Spanning Several Different Layouts

I'm a RoR newbie (v3.2.13), and I'm building a new site/application that has a lot of landing pages, divided into 6-8 different layouts. The layouts are using similar elements in a changing order, so I'm using partials and layout inheritance to…
0
votes
1 answer

Obtain ID of the entity concerned by the partial. Rails

I've got two models : canvas an block I've got canvas who all have 9 blocks linked to them. canvas/show.html.erb …
Zoz
  • 339
  • 1
  • 4
  • 9
0
votes
1 answer

Sharing partials among layouts

I have a couple of layouts main.html.haml and alternative.html.haml, which share some elements. I would like to have a partial to share between them. Using render ='my_partial' doesn't seem to work. How should I go about it?
AdamNYC
  • 19,887
  • 29
  • 98
  • 154
0
votes
2 answers

AngularJS Javascript + $scope data

So I've been trying to figure this out all day and maybe I'm just overlooking something really simple. Here's my problem: I have a nice Nodejs/AngularJS app setup that's using Jade for templating. I do some stuff on the server and eventually get…
Tim
  • 67
  • 1
  • 5
0
votes
2 answers

Webstorm - Link html class reference to scss file

I've setup a compass file watcher as listed here. http://blog.founddrama.net/2013/04/watching-compass-files-in-webstorm/ The file watcher works flawlessly, same as the command line compass process. I'm curious if there's a way to configure WebStorm…
Jack Murphy
  • 2,952
  • 1
  • 30
  • 49
0
votes
1 answer

Laravel failure to pass tabindex variable between partials

I've run into a slight problem with my enumerated tab indices using Laravel. I have a simple controller public function get_login() { return View::make('auth.login')->with('i', 1); } Then in my view I'm loading two…
alexleonard
  • 1,314
  • 3
  • 21
  • 37
KP KA