View partial
1 2 3 4 5 6 7 8 9 10
/**
* helper for including re-usable shared partials such as degree icon, miniprofile and ads
* @method partial
* @param {Object} params a configuration object created from attributes set in the template.
* template param specifies the partial template to be rendered --optional
* key params specifies the special context for the partial tag data --optional, defaults to creating tag data in partial block
*/
dust.helpers.partial = function( chunk, context, bodies, params ){
var partial = {};
if( params) {
View rhino_dust.java
1 2 3 4 5 6 7 8 9 10
package com.linkedin.dust.renderer;
 
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.Writer;
 
import org.mozilla.javascript.Context;
import org.mozilla.javascript.JavaScriptException;
View form_template.js
1 2 3 4 5 6 7 8 9 10
<form class="standard-form" id="{name}_id" name="{name}" method="{method}" action="{action}">
<fieldset>
<p class="task-content">Worked from</p>
<ul>
{! showStartDate !}
<li class="start-date" style="display:none">
{#startDateMonth choose="Choose"}
{>singleSelect/}
{/startDateMonth}
View compass_compiler.rb
1 2 3 4 5 6 7 8 9 10
require 'rubygems'
require 'sass'
require 'compass'
require 'compass/exec'
 
class COMPASS_COMPILER
 
def self.compileme(filename, locale)
$LOAD_PATH.unshift "#{filename}.scss"
View locale_specific.css
1 2 3 4 5 6 7 8 9 10
require 'rubygems'
require 'compass'
require 'compass/exec'
 
## start sass css converter
class SASS_CSS
 
module Sass::Script::Functions
def user_language()
Sass::Script::String.new(options[:custom][:lang])
View articles.html
1 2 3 4 5 6 7 8 9 10
{! article dust template with partials for polling and pagination !}
 
<div id="today_feed" class="grid unit_8">
<div id="today_feed-updates" class="unit_8 alpha omega">
{>"Polling"/}
</div>
<div id="today_feed-articles" class="unit_8 alpha omega">
<ul class="articles">
{#content}{#news_container_section}{#newsList}
{>"Article"/}
View suggest_form.html
1 2 3 4 5 6 7 8 9 10
{#data}
<div id="connection-suggester-dialog">{! /* DIALOG WRAPPER */ !}
<div class="connection-suggester-picker">{! /* DIALOG PICKER WRAPPER */ !}
{! /* SUGGESTER TOOLS */ !}
 
<div class="connection-sugg-head">
{! /* SEE ALL/SELECTED BUTTONS WITH COUNTS */ !}
<a href="#" class="show-selected btn-quaternary disabled">
<span class="selected">{.connection_suggester__input_value__see_selected} <b></b></span>
View basic_form.html
1 2 3 4 5 6 7 8 9 10
<div class="guided-edit">
{>_close_action/}
{<closeText}{i18n_text_plain__close}{/closeText}
{?firstTaskTitleString}
<h1>{firstTaskTitleString|s}</h1>
{/firstTaskTitleString}
<form class="standard-form" id="{name}_id" name="{name}" method="{method}" action="{action}">
<fieldset>
<legend>{i18n_text_plain__what_is_your_industry}</legend>
View skills.html
1 2 3 4 5 6 7 8 9 10
{#profile_skill}
<div class="section" id="profile-skills" style="display:block">
<div class="header">
<h2>{@pre:i18n text="Skills"}</h2>
</div>
{?skills} {! we still want to display the Skills heading, even if the number of skills is zero !}
<div class="content">
<ol class="skills" id="skills-list">
{#skills}
<li class="competency show-bean">
Something went wrong with that request. Please try again.