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
General-Purpose Text-File Templating Utility λtext is a generic templating tool for any text file. For languages that don't support import-style code-reuse, it's common to just copy/paste. However, after a change is needed, that change must be replicated manually to every file needing it. With λtext, you parameterize the files themselves, and let λtext do the pasting. With Lambda Calculus as the u
Unsupported web browser - Use a modern browser to view this website! Apache FreeMarker™ is a template engine: a Java library to generate text output (HTML web pages, e-mails, configuration files, source code, etc.) based on templates and changing data. Templates are written in the FreeMarker Template Language (FTL), which is a simple, specialized language (not a full-blown programming language lik
Introduction 複数の異なる店舗が軒をつらねるショッピングモールのようなECサイトや、 あるいはブログサービスサイトなどでは、 Webアプリケーションとしての機能は同じであってもユーザー毎に異なるWebデザインを求められることがあります。 あるいは、サイトがひとつでユーザーがひとりであっても、 マーケティング上の理由から、機能を変えずに見栄えを常に変更しつづけたい、 という要求もあります。 しかし、JSPやVelocityに代表される従来型のテンプレートエンジンは、 JSPであればカスタムタグを、 VelocityであればVTL(Velocity Template Language)を用いた特殊な構文を、 通常のhtmlタグに混在させてテンプレートを書く必要があります。 これは顧客とWebデザイナーの立場から見ると最終的なデザインの確認がしづらく、 プログラマーの立場から見るとプ
1 Thymeleafの紹介 1.1 Thymeleafって何? ThymeleafはJavaのテンプレートエンジンライブラリです。XML/XHTML/HTML5で書かれたテンプレートを変換して、アプリケーションのデータやテキストを表示することができます。 ウェブアプリケーション内のXHTML/HTML5を扱う方が得意ですが、どんなXMLファイルでも処理できますし、ウェブアプリケーションでもスタンドアローンアプリケーションでも使用可能です。 Thymeleafのメインゴールは、テンプレート作成のための優雅で整形式の方法を提供することです。そのため、テンプレート内にロジックを記述する方法ではなく、事前定義されたロジックの実行を DOM(Document Object Model) 上でXMLタグ・属性によって指定する方法を基本としています。 このアーキテクチャのおかげで、パースしたファイルを
Java 8 has been released almost one year ago in March 2014. At Pondus we’ve managed to update all of our production servers to this new version back in May 2014. Since then we’ve migrated major parts of our code base to lambda expressions, streams and the new Date API. We also use Nashorn to dynamically script parts of our application which may change during runtime. The most used feature besides
@div(id:="my-div") @h1 Hello World! @p I am @b{Cow} Hear me moo I weigh twice as much as you And I look good on the barbecue <div id="my-div"> <h1>Hello World!</h1> <p> I am <b>Cow</b> Hear me moo I weigh twice as much as you And I look good on the barbecue </p> </div> Scalatex is a language for generating rich HTML documents in Scala. It lets you DRY up your documents the same way you DRY your co
今回はReact.jsの大きな特徴の1つで、これが出来るから使うという人もいるserver-side renderingについて書きたいと思います。 server-side renderingとは文字どおりサーバーサイドでHTMLを生成してrendering出来るようにするものです。SinglePageApplicationのようなJavaScriptでDOMを組み立てるようなアプリケーションの場合、サーバーから返されるHTMLには空のdivだけがあってそこからJavaScriptを読み込んでtemplateを描画することになり、これには2点の問題点があります。 初期のロード時間 HTMLが返されてJavaScriptを評価してそこからtemplateの表示になるので、サーバーサイドからHTMLが返される場合と比べて当然時間が掛かります。なので別途ローディングを見せるなどの工夫が必要になり
I’m not big on custom templating languages, for reasons I’ll write about another time. I prefer EDSLs. I preferred the xhtml package back when that was what everybody used. It looked like this: header << thetitle << "Page title" thediv noHtml ! [theclass "logo"] << "…" thediv noHtml ! [identifier "login"] Pretty line-noisy to read, write and hard to edit in a reasonable manner. Later, blaze-html b
You've been looking for a more sophisticated templating engine for JavaScript. Here it is. Rich Powerful language with block inheritance, autoescaping, macros, asynchronous control, and more. Heavily inspired by jinja2 Fast & Lean High-performant. Small 8K gzipped runtime with precompiled templates in the browser Extensible Crazy extensible with custom filters and extensions Everywhere Available i
+ ^''''''''''''''''''^^''^''''''''^^'^'''''^'^^^'^'^^''^^^'^^'''''''^'''^''^''^^'^'^^^'^'^^'^^^^!^^^^^^^^^^^^''''''^^^'^'^^^''^^^^^'^'^^''^''^^^^^^^!!+! !^''''''''''''''''''^'^^^^^^''^'^^'^^^'^^'^^^''^^^^^^^^^^!^''^''''^'^^^'^^^^^^^^^^^^^^^^^^^^^^^^^!^^^^^^^^^^^^^^^^^^^^^^^'^^^^^^^^^^^^^^^^^^^^^!!!+:i+ ^^'^''''''^^'''''^'^^^'^'^^^^^''^^^^^^'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
htmlとPHPが混在するファイルをいじるときが問題だ emacsで何らかのMVCフレームワークを使っているとき、viewファイルをどのmodeで開くのかが問題です。 純粋なHTMLならhtml-modeを使えばよいですし、純粋なPHPならphp-modeを使うと思います。 しかし、以下の様なコードが出てきた時どちらのモードで開発してもしっくりきません。 <div class="foo"> <?php if ($flg): ?> FLG is ON <?php else:?> FLG is OFF <?php endif ?> </div> この対処方法をいくつか試してみたので紹介します。 mmm-mode https://github.com/purcell/mmm-mode emacs古来からの方法だと、mmm-modeを使うのが主流っぽい。これは、1つのファイルの中で複数のメジャーモ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く