並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 40 件 / 48件

新着順 人気順

handlebarsの検索結果1 - 40 件 / 48件

  • Handlebars

    Semantic templates Handlebars provides the power necessary to let you build semantic templates effectively with no frustration. Mustache-compatible Handlebars is largely compatible with Mustache templates. In most cases it is possible to swap out Mustache with Handlebars and continue using your current templates. Fast execution Handlebars compiles templates into JavaScript functions. This makes th

    • Express と handlebars で動き続ける日経 — HACK The Nikkei

      Nikkei Advent Calendar 2023の 14 日目は IDE がやっていきます。いま Web チーム内の基盤改善を専門とするチームで活動しています。自分が入社するより前に作られてメンテナンスがあまりされていなかったシステムを、現代でも戦えるようにするお仕事をしています。メンテナンスを放置することはセキュリティ的によくないので、メンテナンスを専業で行っています。最近の自分の仕事は、今日紹介する rnikkei と呼ばれるマイクロサービス群の Node.js バージョンを、v12 から v18(一部は v20) まで引き上げることです。この rnikkei は当初「爆速の日経」と呼ばれていた頃に設計・実装されたサービスです。今日はそのような過去に作られたサービスにもう一度スポットライトを当ててみようと思います。 see: https://marketing.itmedia.c

        Express と handlebars で動き続ける日経 — HACK The Nikkei
      • 3つの簡単便利Javascriptテンプレートエンジン。Mustache.js, Handlebars.js, Microtemplating | codechord

        Posted 7月 13th, 2013 by codechord. 0 Comments Tweet Tweet 多忙きわまりない2013年初夏でございます。 最近あんまりコードらしいもの書けてなくって、vagrantとかshefとかpjaxとかnodeとか理解するために時間つくりたい、コード書きたい!ってなってます。今回ちょっとajaxまわりのものの実装でjavascriptのテンプレートエンジンに調べる必要あったので、javascriptのテンプレートエンジンに触れてみようかなと。 phpのテンプレートだとsmartyだとか、rubyだとERBとかなんかそういうのですけど、javascriptのテンプレートエンジンについて知らなかったんで。 目次 – Table of Contents Javascriptのテンプレートエンジンの候補 1. John ResigさんのJavaScri

          3つの簡単便利Javascriptテンプレートエンジン。Mustache.js, Handlebars.js, Microtemplating | codechord
        • Handlebars.jsの基本的な使い方のメモ - console.lealog();

          便利ですよね、Handlebars。 でも日本語の記事が案外なかったり、公式のドキュメントがいまいちアレだったりするので、自分用にまとめます。 それがどこかで誰かの役に立てば、それはそれで幸いです。 基本的な使い方 インストールとかは割愛。 だって読み込むだけやし・・・。 で、そこからは テンプレート・ひな形となるHTMLを用意 そのHTMLをHandlebarsに食わせる 動的にはめ込む値をつっこむ 基本的にはこの3ステップです。 Html <!-- 略 --> <script id="input" type="text/x-handlebars-template"> <section class="inner"> <h1 class="header">{{title}}</h1> <div class="box"> <img src="{{img.url}}" alt="{{img.a

            Handlebars.jsの基本的な使い方のメモ - console.lealog();
          • JavaScriptのテンプレートエンジンHandlebars入門 - Qiita

            Handlebarsを使うべきではない言葉なので修正してくださいという同僚がいたので、まとめてみます。 ただのテンプレートエンジンでデータバインディングとかはないんですが、もし使いどころがあればご参考までに。 基本的には、 http://handlebarsjs.com/ に詳しく書いてあるので、そちらを見てください。 Handlebarsとは Handlebarsとはいわゆるテンプレートエンジンで、 JavaScriptの値を参照してHTMLを生成できるもの。 書き方 テンプレートは

              JavaScriptのテンプレートエンジンHandlebars入門 - Qiita
            • Emblem.js: a concise, indented alternative Handlebars syntax

              • 結局、JavaScriptのテンプレートエンジンはHandlebars.jsが最強だったという話 - Life goes on

                若干タイトル釣り気味だけど。 クライアントサイドJavaScriptで使えるテンプレートエンジンのメモ - Life goes on この記事全然予想してなかったんですが、結構はてブされてて結論書いてなかったんで。 これ調べた時は結局Handlebars.js: Minimal Templating on Steroidsを全社的に使うという事になりました。 有識者とかのレビューにも良く耐えた優秀なテンプレートエンジンでした。 まあ色々要件はあると思うんで、一概には言えませんけど、helperメソッドの拡張性と、速度(プレコンパイルできるというのもある)、サーバー・クライアント問わずに使える、ちゃんと構文解析されてる(下記URL参照)などが決め手でした。 https://github.com/wycats/handlebars.js/tree/2b3e7773409b9fba68e275d

                  結局、JavaScriptのテンプレートエンジンはHandlebars.jsが最強だったという話 - Life goes on
                • The client-side templating throwdown: mustache, handlebars, dust.js, and more

                  The client-side templating throwdown: mustache, handlebars, dust.js, and more In a previous post, we told you how LinkedIn is dumping server-side templates in favor of client-side templates. We've gotten lots of great feedback that we'll discuss in future posts, but today, we'll focus on one question that was especially popular: How did LinkedIn pick dust.js as its client-side templating solution?

                    The client-side templating throwdown: mustache, handlebars, dust.js, and more
                  • I am mitsuruog | Backbone.jsとHandlebars.jsを組み合わせる

                    Backbone.js でアプリケーションを作る場合、ついつい手軽さを求めてUnderscore.js の template()を使うことが多いのですが、少し凝った造りのページを作る場合、より専門的なテンプレートエンジンを使いたくなります。 そこで今回は、最近マイブームのHandlebars.jsを Backbone と組み合わせて使ってみました。 このエントリでお伝えしたいこと。 Backbone.js with Handlebars.js!! ここでもやっぱり Grunt 最高 Handlebars.js とは 詳細は Google 先生の方が詳しいです(ごめんなさい)。 数あるクライアントサイドのテンプレートエンジンの 1 つです。個人的にはプリコンパイルすることでパフォーマンス的に優位なところを注目しています。 [jsperf]Precompiled Templates 最近話題の

                      I am mitsuruog | Backbone.jsとHandlebars.jsを組み合わせる
                    • GitHub - handlebars-lang/handlebars.js: Minimal templating on steroids.

                      You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                        GitHub - handlebars-lang/handlebars.js: Minimal templating on steroids.
                      • Prettier 2.3. In which assignments are consistent, short keys non-breaking, and Handlebars official · Prettier

                        This release focuses on fixing long-standing issues in the JavaScript printer. Be warned that, unfortunately, reformatting a project with the new version might result in quite a big diff. If you don’t use ignoreRevsFile to hide such wholesale changes from git blame, it might be about time. A remarkable milestone is the long-awaited release of the Ember / Handlebars formatter. It’s supposed to be t

                          Prettier 2.3. In which assignments are consistent, short keys non-breaking, and Handlebars official · Prettier
                        • 第5回 Handlebarsの使用法 | gihyo.jp

                          今回は、Meteorアプリケーションのビューを作成する上で必要とされるHandlebarsについて解説します。 前回お伝えした通り、MeteorのHTML内ではHandlebarsを用いたテンプレートが利用できます。MeteorにおけるHandlebarsは、Meteorと緊密に統合されており、特別なインストール作業などを必要とする事なく利用できます。 式の実行 前回もお伝えしていますが、テンプレート内では{{式}}という構文で式を実行し、結果をテンプレート上に書き出すことができます。たとえば、「⁠personName」という変数を参照するための記述は以下のようになります。 {{personName}}さん、こんにちは! また、ピリオドを用いて入れ子になっている変数を参照することもできます。以下のコードを実行すると、personという変数のnameプロパティを参照します。 {{person

                            第5回 Handlebarsの使用法 | gihyo.jp
                          • Handlebars.jsのincludeヘルパー

                            Handlebars.jsでのテンプレートファイルの取り込みはpartial使えみたいな感じだけど、partialにするものを全て定義しなくちゃいけない。partialのテンプレートでの記述もpartialごとに変わる。それをSSIのインクルードみたいに{{include "foo.hbs"}}でコンテキストを考慮して取り込めたら簡単なんじゃないかなーと。でincludeするだけのヘルパーを作って使うようにしたメモ。 色々遠回りしたけど、結局はテンプレート・ファイルを読んでコンパイル→レンダーする関数を作ってそれをヘルパー関数にすれば良いだけだった。Handlebars.jsがカシコイのでコンテキストとかは自動的に良しなにしてくれる。 var fs = require('fs'); var hbs = require('handlebars'); function applyTemplat

                              Handlebars.jsのincludeヘルパー
                            • GitHub - leshill/handlebars_assets: Use handlebars.js templates with the Rails asset pipeline.

                              You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                GitHub - leshill/handlebars_assets: Use handlebars.js templates with the Rails asset pipeline.
                              • backbone on rails GemでテンプレートにHandlebars.jsを使う

                                backbone-on-railsというGemがありますがデフォルトのテンプレートはecoを使用しています。 JavaScriptのテンプレートフレームワークの中でも高速で割と人気のあるHandlebars.jsに切り替えてみます。 gem 'handlebars_assets' をGemfileのgroup :assetsに追加、bundle installします。 ./config/initializersに handlebars.rbというファイルを追加します。中身は以下のような感じです。 if defined? HandlebarsAssets HandlebarsAssets::Config.template_namespace = 'JST' end ネームスペースを定義して'JST'に変更しています。ecoを使っている場合はJSTになっていると思いますのでそれに合わせてます。

                                • Handlebars.jsを使ったファイル生成Gruntタスク

                                  主にHTMLの生成を行うGruntタスクの話。色々なテンプレート・システムの利用を考えたんだけど、Handlebars.jsにした。よく使うからというのもあるし、いざとなったらデータの再構成を待たずにその場しのぎでテンプレートにロジックを混ぜてお茶を濁せるのが好き。その場しのぎ、お茶を濁す、良い言葉だ。 このGruntタスクは指定されたHandlebars.jsテンプレート(例えばfoo.hbs)をレンダリングするだけのもの。レンダリングに使うデータは、基本のメタデータ(metadata.jsonの内容)とテンプレート・ファイルごとに指定できるメタデータ(foo.jsonの内容)をGruntに含まれるLo-Dashのextend()を使ってマージしたものを使う。Gistのサンプルにあるように基本のメタデータにないものを自由に追加できるし、基本のメタデータを上書きすることも出来る。 コアのg

                                    Handlebars.jsを使ったファイル生成Gruntタスク
                                  • GitHub - jknack/handlebars.java: Logic-less and semantic Mustache templates with Java

                                    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

                                      GitHub - jknack/handlebars.java: Logic-less and semantic Mustache templates with Java
                                    • Announcing Handlebars.js

                                      For a number of years, I've been about as active in client-side development (through jQuery) as I have been active in server-side development (through Merb and then Rails). Recently, I've released a couple of libraries (jQuery Offline and Rack::Offline), designed to make it easier to build applications that can withstand both flaky connections and a complete lack of connectivity. Of course, those

                                      • ES6 Template Literals, the Handlebars killer?

                                        I had a recent discussion with one of the awesome developers at the FT - @bjfletcher. We were looking at how viable it would be to replace a templating language, like Handlebars with ES6 Template Literals, in some manner. Ben suggested it'd be a good idea to turn our discussion into a post, and here we are - with a click bait title and everything. So what are Template Literals? How can they do wha

                                          ES6 Template Literals, the Handlebars killer?
                                        • {{ Handlebars.java }} - Blog

                                          Getting Started {{ Mustache }} templates in Java: first steps for getting started with Handlebars.java. Helpers in Handlebars.java: learn everything about helpers in Handlebars.java. When Handlebars.js met Handlebars.java: learn how to integrate Handlebars.js and Handlebars.java. Reusing {{ Mustache }} templates: learn how to reuse templates in Handlebars.java by inclusion or inheritance. Where is

                                          • GitHub - winstromming/sassdown: Generates styleguides from Markdown comments in CSS, SASS and LESS files using Handlebars

                                            You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                              GitHub - winstromming/sassdown: Generates styleguides from Markdown comments in CSS, SASS and LESS files using Handlebars
                                            • GitHub - helpers/handlebars-helpers: 188 handlebars helpers in ~20 categories. Can be used with Assemble, Ghost, YUI, express.js etc.

                                              You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                GitHub - helpers/handlebars-helpers: 188 handlebars helpers in ~20 categories. Can be used with Assemble, Ghost, YUI, express.js etc.
                                              • PhpStormでHandlebars.jsを使う | mawatari.jp

                                                Handlebars.jsのプリコンパイルを行いたいので、開発環境にHandlebars.jsをインストールします。そのため、Node.jsが必要となります。Node.jsの環境構築は、ググって調べるか、過去の記事を参考にしてみてください。 nvmとNode.jsとWebSocket.IOをインストールしてWebSocketアプリの環境を作る npmでHandlebars.jsをインストールするnpm (Node Package Manager) を使って、Handlebars.jsをインストールします。Handlebars.jsの公式サイトにも簡単な手順が記載されています。 Handlebars.js – precompile npm install handlebars -g npm http GET https://registry.npmjs.org/handlebars npm

                                                  PhpStormでHandlebars.jsを使う | mawatari.jp
                                                • JavaEE 8/MVC 1.0 RI Ozark + Handlebarsを試す - しんさんの出張所 はてなブログ編

                                                  久々にだれでも気軽に使えそうなJavaEEのパーツが出てきたようなので、自分で動かしてみる。 まずJAX-RSを動かす とりあえずMVC1.0のセットアップなどは以下を参照。 http://masatoshitada.hatenadiary.jp/entry/2015/03/31/220509 まずはベースとなるJAX-RS部分がちゃんと動くか動作確認する。 package com.shingames.mvc1.ozarchbs; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; @Path("hellojaxrs") public class HelloJaxrs { //通常のJAX-RS @GET @Produ

                                                    JavaEE 8/MVC 1.0 RI Ozark + Handlebarsを試す - しんさんの出張所 はてなブログ編
                                                  • GitHub - jiren/StreamTable.js: StreamTable.js streams data for tables in the background, updates and renders them using templating frameworks like Mustache.js, HandleBars.js

                                                    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                      GitHub - jiren/StreamTable.js: StreamTable.js streams data for tables in the background, updates and renders them using templating frameworks like Mustache.js, HandleBars.js
                                                    • Handlebars.java を使う

                                                      Handlebars.java を使う2013年5月04日Handlebars.java は Handlebars の Java 実装です。 ここでは Template Inheritance 機能とデフォルト HTML エスケープの動きを中心に見てゆきます。 セットアップ方法 Handlebars.java のページが詳しいです。Spring MVC の ViewResolver も提供されています。検証に使ったソースコードも参考になると思います。 Template Inheritance Handlebars.java では Template Inheritance 機能が使えます。親テンプレートで定義された複数のブロックを子テンプレートから上書くことができ、多くのテンプレートエンジンが単一のブロックのみの上書きをサポートしているのに対して、より柔軟なテンプレートを書くことができます。

                                                        Handlebars.java を使う
                                                      • RailsとクライアントJavaScriptで共通のテンプレートエンジンを使う: Handlebars編

                                                        「ナタリー」「ゼゼヒヒ」「ポリタス」 カタカナ4文字のモノばかり、作って来ました。 現在はスマホ向けRTS「カラクリ合戦伝」を開発中。 Rails + Backbone.js + JavaScriptテンプレートエンジンでのアプリ開発を行う中で、Railsとクライアント側で共通のテンプレートエンジンを使えないかと色々しらべてみました。 最初は、RubyとJavaScript両方の実装があるMastacheを考えていたのですが、Mastacheとテンプレートの記述に上位互換を持ちつつ機能を拡張したHandlebars.jsには、テンプレートをJavaScriptにコンパイルして高速化する機能などがあるということで、まずHandlebars.jsから着手。 「Rails handlebars.js」とかでググるといろんなツールが出てきて頭がクラクラすると思います。ぼくもクラクラしながら状況をま

                                                          RailsとクライアントJavaScriptで共通のテンプレートエンジンを使う: Handlebars編
                                                        • GitHub - tildeio/htmlbars: A variant of Handlebars that emits DOM and allows you to write helpers that manipulate live DOM nodes

                                                          You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                            GitHub - tildeio/htmlbars: A variant of Handlebars that emits DOM and allows you to write helpers that manipulate live DOM nodes
                                                          • Ghost Handlebars Themes - Building a custom Ghost theme - Docs

                                                            For Creators YouTubers, bloggers, podcasters, musicians & artists

                                                              Ghost Handlebars Themes - Building a custom Ghost theme - Docs
                                                            • Handlebars.jsとTwitter Search APIを使ったサンプル - console.lealog();

                                                              いま絶賛勉強中のHandlebars.jsを使って、TwitterのAPIを絡めたサンプルを。 Handlebars.jsについては、また備忘録を残そうかと思ってます。 概要 TwitterのSearch APIを叩く 取得したjsonを、Handlebarsのテンプレに流しこむ 簡単! ソース Html / Css <!DOCTYPE html> <html lang="ja"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Handlebars x Twitter API</title> <style> body{ text-align: center; margin: 0; padding: 0; } #container{ width: 50%; margin: 0

                                                                Handlebars.jsとTwitter Search APIを使ったサンプル - console.lealog();
                                                              • Handlebars.js Tutorial: Learn Everything About Handlebars.js JavaScript Templating

                                                                (A Comprehensive Handlebars.js Tutorial) This is a complete tutorial, and indeed a reference, on Handlebars.js templating and, principally, JavaScript templating. Handlebars.js is a client-side (though it can be used on the server, too) templating engine for JavaScript. It is a JavaScript library that you include in your page just as you include any other JavaScript file. And with it, you can add

                                                                  Handlebars.js Tutorial: Learn Everything About Handlebars.js JavaScript Templating
                                                                • GitHub - latentflip/domthing: A simple, fast, & safe, mustache/handlebars like templating engine with data-binding hooks built in.

                                                                  You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                    GitHub - latentflip/domthing: A simple, fast, & safe, mustache/handlebars like templating engine with data-binding hooks built in.
                                                                  • GitHub - pillarjs/hbs: Express view engine wrapper for Handlebars

                                                                    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                      GitHub - pillarjs/hbs: Express view engine wrapper for Handlebars
                                                                    • Handlebars template injection and RCE in a Shopify app

                                                                      TL;DR We found a zero-day within a JavaScript template library called handlebars and used it to get Remote Code Execution in the Shopify Return Magic app. The Story: In October 2018, Shopify organized the HackerOne event "H1-514" to which some specific researchers were invited and I was one of them. Some of the Shopify apps that were in scope included an application called "Return Magic" that woul

                                                                        Handlebars template injection and RCE in a Shopify app
                                                                      • javascript - How to get index in Handlebars each helper? - Stack Overflow

                                                                        I'm using Handlebars for templating in my project. Is there a way to get the index of the current iteration of an "each" helper in Handlebars? <tbody> {{#each item}} <tr> <td><!--HOW TO GET ARRAY INDEX HERE?--></td> <td>{{this.key}}</td> <td>{{this.value}}</td> </tr> {{/each}} </tbody>

                                                                          javascript - How to get index in Handlebars each helper? - Stack Overflow
                                                                        • An Introduction to Handlebars | Envato Tuts+

                                                                          If your site's data regularly changes, then you might want to take a look at Handlebars. Handlebars is a template processor that generates HTML pages dynamically. The ability to generate pages dynamically saves time by eliminating the need for manual updates. This tutorial will introduce Handlebars and teach you how to create a simple template for your website. Site Template There are two primary

                                                                            An Introduction to Handlebars | Envato Tuts+
                                                                          • GitHub - ericf/express-handlebars: A Handlebars view engine for Express which doesn't suck.

                                                                            You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                              GitHub - ericf/express-handlebars: A Handlebars view engine for Express which doesn't suck.
                                                                            • GitHub - blakeembrey/dombars: *DEPRECATED* DOM-based templating library with data-binding and built on Handlebars

                                                                              You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                                GitHub - blakeembrey/dombars: *DEPRECATED* DOM-based templating library with data-binding and built on Handlebars
                                                                              • Handlebarsで配列にアクセスする

                                                                                こうです。 // {items: ['foo', 'bar']} だったとして {{items.0.this}} // foo デモ。普通に考えると{{items.0}}になりそうですが、数値で終えるとパースエラーになります(array likeなオブジェクトも同様)。さらに階層がある場合はこうです。 // {items: [{'foo': 'a', 'bar': 'b'}]} だったとして {{items.0.foo}} // a Handlebarsでは基本自身にアクセスしたい時にthisを使うと覚えておくと混乱がなさそう。公式にも出ている例だとこんな。 <ul> {{#each items}} <li>{{this}}</li> {{/each}} </ul> 参考: javascript - handlebars access array item - Stack Overflow

                                                                                • Handlebars.js: Minimal Templating on Steroids

                                                                                  Using the Handlebars precompiler, you can precompile your Handlebars templates to save time on the client and reduce the required runtime size of the handlebars library.