Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
部分を含む動的文字列を作成しようとしています。基本的に、私は次のようなことをしたいと思います:
<%= partial("questions/<%= filename %>") %>
しかし、それは機能していません。これを行う方法に関するヒントはありますか?
単純な文字列連結でした!
<%= partial("questions/" + filename) %>
Twitter でこれに回答してくれた Mike McNiel (Sails.js の作成者) に感謝します。