getify/grips

grips-css: function to normalize selectors

开放

#15 创建于 2014年3月11日

 (0 条评论) (0 个反应) (1 位负责人)JavaScript (22 个派生)github user discovery
help wanted

仓库指标

星标
 (288 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Whenever selectors are processed by the codegen, and they are base64 encoded for the grips partial id's, these selectors need to be normalized. Whenever render(..) is called with a selector, that selector should be normalized, so it can match when base64 encoded the proper grips partial.

Examples of necessary normalizations:

foo     bar

-> foo bar

foo     >       bar

-> foo > bar

foo    /* something */    bar

-> foo bar

贡献者指南